Commit 07cec262 authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski
Browse files

Create emcoinc_params before called

parent fc38446d
Pipeline #89418 failed with stages
in 9 minutes and 23 seconds
......@@ -291,6 +291,7 @@ def construct_voevent_file(obj, voevent, request=None):
if (is_superevent(obj) and voevent.raven_coinc):
ext_id = obj.em_type
ext_event = Event.getByGraceid(ext_id)
emcoinc_params = []
## External GCN ID
if ext_event.trigger_id:
......
......@@ -612,7 +612,7 @@ class SupereventVOEventSerializer(serializers.ModelSerializer):
super(SupereventVOEventSerializer, self).__init__(*args, **kwargs)
read_only_fields = ['file_version', 'filename', 'ivorn',
'coinc_comment', 'prob_has_ns', 'prob_has_remnant', 'prob_bns',
'prob_nsbh', 'prob_bbh', 'prob_terrestrial', 'prob_mass_gap']
'prob_nsbh', 'prob_bbh', 'prob_terrestrial', 'prob_mass_gap', ]
for f in read_only_fields:
self.fields.get(f).read_only = True
......
......@@ -67,5 +67,5 @@ class Migration(migrations.Migration):
model_name='voevent',
name='ivorn',
field=models.CharField(blank=True, default='', editable=False, max_length=300),
)
),
]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment