Skip to content

Commit 1a71c8d

Browse files
author
Kátia Nakamura
authored
Merge pull request #109 from PythonBalkan/katia/keynote-type
timetable: add KEYNOTE as a type to Presentation model
2 parents d53bb56 + b231163 commit 1a71c8d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 2.0.5 on 2018-08-03 18:20
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('timetable', '0002_auto_20180604_1346'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='presentation',
15+
name='type',
16+
field=models.IntegerField(choices=[(0, 'Talk'), (1, 'Workshop'), (2, 'Keynote')], default=0),
17+
),
18+
]

pyconbalkan/timetable/models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ def __str__(self):
1717
class Presentation(ActiveModel):
1818
TALK = 0
1919
WORKSHOP = 1
20+
KEYNOTE = 2
2021
PRESENTATION_TYPE = (
2122
(TALK, 'Talk'),
2223
(WORKSHOP, 'Workshop'),
24+
(KEYNOTE, 'Keynote'),
2325
)
2426

2527
title = models.CharField(null=True, blank=True, max_length=100)

0 commit comments

Comments
 (0)