dynamicweb/digitalglarus/migrations/0001_initial.py

81 lines
3.3 KiB
Python
Raw Permalink Normal View History

# -*- coding: utf-8 -*-
2016-03-15 23:26:49 +00:00
# Generated by Django 1.9.4 on 2016-03-13 21:39
from __future__ import unicode_literals
2016-03-07 16:49:02 +00:00
from django.db import migrations, models
2016-03-15 23:26:49 +00:00
import django.db.models.deletion
2016-03-07 16:49:02 +00:00
import filer.fields.image
class Migration(migrations.Migration):
2016-03-15 23:26:49 +00:00
initial = True
dependencies = [
2016-03-15 23:26:49 +00:00
('filer', '0002_auto_20150606_2003'),
2016-03-07 16:49:02 +00:00
('cms', '0013_urlconfrevision'),
]
operations = [
2016-03-07 16:49:02 +00:00
migrations.CreateModel(
name='DGGallery',
fields=[
2016-03-15 23:26:49 +00:00
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2016-03-07 16:49:02 +00:00
('name', models.CharField(max_length=30)),
2016-03-15 23:26:49 +00:00
('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='digitalglarus.DGGallery')),
2016-03-07 16:49:02 +00:00
],
options={
'verbose_name_plural': 'dgGallery',
},
),
migrations.CreateModel(
name='DGGalleryPlugin',
fields=[
2016-03-15 23:26:49 +00:00
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
('dgGallery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='digitalglarus.DGGallery')),
2016-03-07 16:49:02 +00:00
],
options={
'abstract': False,
},
bases=('cms.cmsplugin',),
),
migrations.CreateModel(
name='DGPicture',
fields=[
2016-03-15 23:26:49 +00:00
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2016-03-07 16:49:02 +00:00
('description', models.CharField(max_length=60)),
2016-03-15 23:26:49 +00:00
('gallery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='digitalglarus.DGGallery')),
('image', filer.fields.image.FilerImageField(on_delete=django.db.models.deletion.CASCADE, related_name='dg_gallery', to='filer.Image')),
2016-03-07 16:49:02 +00:00
],
),
migrations.CreateModel(
name='DGSupportersPlugin',
fields=[
2016-03-15 23:26:49 +00:00
('cmsplugin_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
2016-03-07 16:49:02 +00:00
],
options={
'abstract': False,
},
bases=('cms.cmsplugin',),
),
migrations.CreateModel(
name='Message',
fields=[
2016-03-15 23:26:49 +00:00
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=200)),
('email', models.EmailField(max_length=254)),
('phone_number', models.CharField(max_length=200)),
('message', models.TextField()),
('received_date', models.DateTimeField(verbose_name='date received')),
],
),
2016-03-07 16:49:02 +00:00
migrations.CreateModel(
name='Supporter',
fields=[
2016-03-15 23:26:49 +00:00
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
2016-03-07 16:49:02 +00:00
('name', models.CharField(max_length=200)),
2016-03-15 23:26:49 +00:00
('description', models.TextField(blank=True, null=True)),
2016-03-07 16:49:02 +00:00
],
),
]