Skip to content

Commit 94a5c55

Browse files
author
Bojan Jovanovic
committed
Cfp per conference
Signed-off-by: Bojan Jovanovic <[email protected]>
1 parent 972b22d commit 94a5c55

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Generated by Django 2.1.7 on 2019-03-03 22:09
2+
3+
from django.db import migrations, models
4+
import django.db.models.deletion
5+
import pyconbalkan.conference.models
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('conference', '0008_auto_20190303_1800'),
12+
('cfp', '0011_auto_20181018_1949'),
13+
]
14+
15+
operations = [
16+
migrations.AddField(
17+
model_name='cfp',
18+
name='conference',
19+
field=models.ForeignKey(default=pyconbalkan.conference.models._get_default_conference, on_delete=django.db.models.deletion.CASCADE, to='conference.Conference'),
20+
),
21+
]

pyconbalkan/cfp/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
from slugify import slugify
1212
from taggit.managers import TaggableManager
1313

14+
from pyconbalkan.conference.models import AbstractConference
1415
from pyconbalkan.core.models import ActiveModel
1516
from . import const
1617

1718

18-
class Cfp(ActiveModel):
19+
class Cfp(AbstractConference, ActiveModel):
1920
name = models.CharField(max_length=256)
2021
company = models.CharField(max_length=100, null=True, blank=True)
2122
email = models.EmailField()

0 commit comments

Comments
 (0)