Model should have a default of false, so things that are not defined as true will default to false.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-09 15:35:58 +02:00
parent 0e3e6ae06f
commit 4043b609fd
2 changed files with 4 additions and 1 deletions

View file

@ -183,6 +183,9 @@ class EventProposalForm(forms.ModelForm):
self.fields['track'].empty_label = None
self.fields['track'].queryset = EventTrack.objects.filter(camp=camp)
# make sure video_recording checkbox defaults to checked
self.fields['allow_video_recording'].initial = True
if eventtype.name == 'Debate':
# fix label and help_text for the title field
self.fields['title'].label = 'Title of debate'

View file

@ -330,7 +330,7 @@ class EventProposal(UserSubmittedModel):
)
allow_video_recording = models.BooleanField(
default=True,
default=False,
help_text='Uncheck to avoid video recording.'
)