Model should have a default of false, so things that are not defined as true will default to false.
This commit is contained in:
parent
0e3e6ae06f
commit
4043b609fd
|
@ -183,6 +183,9 @@ class EventProposalForm(forms.ModelForm):
|
||||||
self.fields['track'].empty_label = None
|
self.fields['track'].empty_label = None
|
||||||
self.fields['track'].queryset = EventTrack.objects.filter(camp=camp)
|
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':
|
if eventtype.name == 'Debate':
|
||||||
# fix label and help_text for the title field
|
# fix label and help_text for the title field
|
||||||
self.fields['title'].label = 'Title of debate'
|
self.fields['title'].label = 'Title of debate'
|
||||||
|
|
|
@ -330,7 +330,7 @@ class EventProposal(UserSubmittedModel):
|
||||||
)
|
)
|
||||||
|
|
||||||
allow_video_recording = models.BooleanField(
|
allow_video_recording = models.BooleanField(
|
||||||
default=True,
|
default=False,
|
||||||
help_text='Uncheck to avoid video recording.'
|
help_text='Uncheck to avoid video recording.'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue