From c361ef78cd76517a7926fc9133e72d3cd2663763 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 30 Jun 2022 10:48:28 +0200 Subject: [PATCH] try with field --- teleforma/forms.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/teleforma/forms.py b/teleforma/forms.py index e84d4e54..e7752a6d 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -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 - -- 2.39.5