Fix video recording field and help text.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-08-09 15:28:46 +02:00
parent 6b0bc8b737
commit f2c5c26262
3 changed files with 20 additions and 5 deletions

View file

@ -183,9 +183,6 @@ 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'

View file

@ -0,0 +1,18 @@
# Generated by Django 2.0.4 on 2018-08-09 13:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('program', '0062_auto_20180717_1720'),
]
operations = [
migrations.AlterField(
model_name='eventproposal',
name='allow_video_recording',
field=models.BooleanField(default=True, help_text='Uncheck this to avoid video recording.'),
),
]

View file

@ -330,8 +330,8 @@ class EventProposal(UserSubmittedModel):
) )
allow_video_recording = models.BooleanField( allow_video_recording = models.BooleanField(
default=False, default=True,
help_text='Check to allow video recording of the event. Leave unchecked to avoid video recording.' help_text='Uncheck this to avoid video recording.'
) )
duration = models.IntegerField( duration = models.IntegerField(