diff --git a/pinaxcon/proposals/migrations/0015_securityproposal_talk_format.py b/pinaxcon/proposals/migrations/0015_securityproposal_talk_format.py new file mode 100644 index 00000000..92b6d93e --- /dev/null +++ b/pinaxcon/proposals/migrations/0015_securityproposal_talk_format.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.15 on 2018-10-24 07:13 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('proposals', '0014_securityproposal'), + ] + + operations = [ + migrations.AddField( + model_name='securityproposal', + name='talk_format', + field=models.IntegerField(choices=[(1, 'Presentation (40-45 min)'), (2, 'Short Presentation (20-30 min)'), (3, 'Lightning Talk (5-10 min)')], default=1, help_text='Please indicate your preferred talk length in the private abstract field below.'), + preserve_default=False, + ), + ] diff --git a/pinaxcon/proposals/models.py b/pinaxcon/proposals/models.py index 6dd5f87b..33526507 100644 --- a/pinaxcon/proposals/models.py +++ b/pinaxcon/proposals/models.py @@ -125,6 +125,15 @@ class KernelProposal(Proposal): class SecurityProposal(Proposal): + TALK_FORMATS = [ + (1, "Presentation (40-45 min)"), + (2, "Short Presentation (20-30 min)"), + (3, "Lightning Talk (5-10 min)") + ] + + talk_format = models.IntegerField( + choices=TALK_FORMATS, + help_text="Please indicate your preferred talk length in the private abstract field below.") class Meta: verbose_name = "Security, Identity and Privacy Miniconf Proposal"