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'].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

@ -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(
default=False,
help_text='Check to allow video recording of the event. Leave unchecked to avoid video recording.'
default=True,
help_text='Uncheck this to avoid video recording.'
)
duration = models.IntegerField(