From b231163c3dc64cf5198428fba147861bc22240ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1tia=20Nakamura?= Date: Fri, 3 Aug 2018 20:22:11 +0200 Subject: [PATCH] timetable: add KEYNOTE as a type to Presentation model --- .../migrations/0003_auto_20180803_1820.py | 18 ++++++++++++++++++ pyconbalkan/timetable/models.py | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pyconbalkan/timetable/migrations/0003_auto_20180803_1820.py diff --git a/pyconbalkan/timetable/migrations/0003_auto_20180803_1820.py b/pyconbalkan/timetable/migrations/0003_auto_20180803_1820.py new file mode 100644 index 00000000..065be41f --- /dev/null +++ b/pyconbalkan/timetable/migrations/0003_auto_20180803_1820.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.5 on 2018-08-03 18:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('timetable', '0002_auto_20180604_1346'), + ] + + operations = [ + migrations.AlterField( + model_name='presentation', + name='type', + field=models.IntegerField(choices=[(0, 'Talk'), (1, 'Workshop'), (2, 'Keynote')], default=0), + ), + ] diff --git a/pyconbalkan/timetable/models.py b/pyconbalkan/timetable/models.py index ca8e2f0e..c0a37d8e 100644 --- a/pyconbalkan/timetable/models.py +++ b/pyconbalkan/timetable/models.py @@ -17,9 +17,11 @@ def __str__(self): class Presentation(ActiveModel): TALK = 0 WORKSHOP = 1 + KEYNOTE = 2 PRESENTATION_TYPE = ( (TALK, 'Talk'), (WORKSHOP, 'Workshop'), + (KEYNOTE, 'Keynote'), ) title = models.CharField(null=True, blank=True, max_length=100)