Skip to content
Snippets Groups Projects
Commit 77ae7925 authored by Branson Stephens's avatar Branson Stephens
Browse files

Fixed bug with buildVOEVent

parent 4c591f2f
No related branches found
No related tags found
No related merge requests found
......@@ -410,7 +410,7 @@ def buildVOEvent(event, serial_number, voevent_type, request=None, skymap_filena
v.set_WhereWhen(ww)
############ Citation ############################
if voevent_type != 'preliminary':
if event.voevent_set.count() and voevent_type != 'preliminary':
c = Citations()
for ve in event.voevent_set.all():
# Oh, actually we need to exclude *this* voevent.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment