added supporters plugin
Signed-off-by: rscnt <rascnt@gmail.com>
This commit is contained in:
parent
30b1e5f9c3
commit
d6ddbc31ce
7 changed files with 79 additions and 16 deletions
26
digitalglarus/migrations/0008_dgsupportersplugin.py
Normal file
26
digitalglarus/migrations/0008_dgsupportersplugin.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('cms', '0012_auto_20150607_2207'),
|
||||
('digitalglarus', '0007_auto_20160208_1031'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='DGSupportersPlugin',
|
||||
fields=[
|
||||
('cmsplugin_ptr', models.OneToOneField(primary_key=True, auto_created=True, parent_link=True, to='cms.CMSPlugin', serialize=False)),
|
||||
('dgSupporters', models.ManyToManyField(to='digitalglarus.Supporter')),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
bases=('cms.cmsplugin',),
|
||||
),
|
||||
]
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('digitalglarus', '0008_dgsupportersplugin'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='dgsupportersplugin',
|
||||
name='dgSupporters',
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue