]> git.parisson.com Git - teleforma.git/commitdiff
conference form: streaming false by default
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 29 Jun 2022 22:06:45 +0000 (00:06 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Wed, 29 Jun 2022 22:06:45 +0000 (00:06 +0200)
teleforma/forms.py

index 89ec491065bf9444e6be028e23387f9c681e3cef..392a746465e3a6d46306e8b1429da7e55e747d00 100644 (file)
@@ -8,6 +8,10 @@ class ConferenceForm(ModelForm):
     class Meta:
         model = Conference
 
+     def __init__(self, *args, **kwargs):
+        super(ConferenceForm, self).__init__(*args, **kwargs)
+        self.fields['streaming'].widget.attrs['checked'] = False
+