Fix video recording field and help text.
This commit is contained in:
parent
6b0bc8b737
commit
f2c5c26262
|
@ -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'
|
||||
|
|
18
src/program/migrations/0063_auto_20180809_1525.py
Normal file
18
src/program/migrations/0063_auto_20180809_1525.py
Normal 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.'),
|
||||
),
|
||||
]
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue