From 94a5c5519d23470eefe70bd07071e1a598396654 Mon Sep 17 00:00:00 2001 From: Bojan Jovanovic Date: Sun, 3 Mar 2019 23:10:04 +0100 Subject: [PATCH] Cfp per conference Signed-off-by: Bojan Jovanovic --- .../cfp/migrations/0012_cfp_conference.py | 21 +++++++++++++++++++ pyconbalkan/cfp/models.py | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 pyconbalkan/cfp/migrations/0012_cfp_conference.py diff --git a/pyconbalkan/cfp/migrations/0012_cfp_conference.py b/pyconbalkan/cfp/migrations/0012_cfp_conference.py new file mode 100644 index 00000000..21ae0e7d --- /dev/null +++ b/pyconbalkan/cfp/migrations/0012_cfp_conference.py @@ -0,0 +1,21 @@ +# Generated by Django 2.1.7 on 2019-03-03 22:09 + +from django.db import migrations, models +import django.db.models.deletion +import pyconbalkan.conference.models + + +class Migration(migrations.Migration): + + dependencies = [ + ('conference', '0008_auto_20190303_1800'), + ('cfp', '0011_auto_20181018_1949'), + ] + + operations = [ + migrations.AddField( + model_name='cfp', + name='conference', + field=models.ForeignKey(default=pyconbalkan.conference.models._get_default_conference, on_delete=django.db.models.deletion.CASCADE, to='conference.Conference'), + ), + ] diff --git a/pyconbalkan/cfp/models.py b/pyconbalkan/cfp/models.py index 7d3e13d1..2f6ffe0f 100644 --- a/pyconbalkan/cfp/models.py +++ b/pyconbalkan/cfp/models.py @@ -11,11 +11,12 @@ from slugify import slugify from taggit.managers import TaggableManager +from pyconbalkan.conference.models import AbstractConference from pyconbalkan.core.models import ActiveModel from . import const -class Cfp(ActiveModel): +class Cfp(AbstractConference, ActiveModel): name = models.CharField(max_length=256) company = models.CharField(max_length=100, null=True, blank=True) email = models.EmailField()