From 36fefab3c9111b50edbb9dc2f205066f9b7363e3 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 30 Jun 2022 00:06:45 +0200 Subject: [PATCH] conference form: streaming false by default --- teleforma/forms.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/teleforma/forms.py b/teleforma/forms.py index 89ec4910..392a7464 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -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 + -- 2.39.5