]> git.parisson.com Git - teleforma.git/commitdiff
try with field
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 30 Jun 2022 08:48:28 +0000 (10:48 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 30 Jun 2022 08:48:28 +0000 (10:48 +0200)
teleforma/forms.py

index e84d4e54f0e9832f32a22748e03c8ecb72252e4c..e7752a6d368a3f826171648cb5db43b6d7cedef7 100644 (file)
@@ -5,10 +5,7 @@ from teleforma.models import Conference
 
 class ConferenceForm(ModelForm):
 
+    streaming = forms.BooleanField(initial=False)
+
     class Meta:
         model = Conference
-
-    def __init__(self, *args, **kwargs):
-        super(ConferenceForm, self).__init__(*args, **kwargs)
-        self.fields['streaming'].widget.attrs['checked'] = False
-