From f2c5c262623b091cb8d5bac8a8092c7f1d415d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Thu, 9 Aug 2018 15:28:46 +0200 Subject: [PATCH] Fix video recording field and help text. --- src/program/forms.py | 3 --- .../migrations/0063_auto_20180809_1525.py | 18 ++++++++++++++++++ src/program/models.py | 4 ++-- 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 src/program/migrations/0063_auto_20180809_1525.py diff --git a/src/program/forms.py b/src/program/forms.py index bcd20b57..952f62f9 100644 --- a/src/program/forms.py +++ b/src/program/forms.py @@ -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' diff --git a/src/program/migrations/0063_auto_20180809_1525.py b/src/program/migrations/0063_auto_20180809_1525.py new file mode 100644 index 00000000..d089fe94 --- /dev/null +++ b/src/program/migrations/0063_auto_20180809_1525.py @@ -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.'), + ), + ] diff --git a/src/program/models.py b/src/program/models.py index 36f363fb..025ce339 100644 --- a/src/program/models.py +++ b/src/program/models.py @@ -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(