Commit eb1d9047 authored by fred's avatar fred

fix addition of diffusion times in new episode form

parent 8620ffa5
......@@ -200,7 +200,7 @@ class EpisodeNewForm(EpisodeForm):
super(EpisodeNewForm, self).__init__(*args, **kwargs)
emission = kwargs.get('initial', {}).get('emission')
diffusion_fields = self.get_diffusion_fields(emission)
for field_name in self.fields.keys():
for field_name in list(self.fields.keys()):
if field_name.endswith('_diffusion') and not field_name in diffusion_fields:
del self.fields[field_name]
......
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