Commit 34e5437a authored by chris's avatar chris

create migrations

parent 04087799
Pipeline #121 canceled with stages
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import sorl.thumbnail.fields
import ckeditor.fields
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Agenda',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('text', ckeditor.fields.RichTextField(null=True, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='File',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('file', models.FileField(null=True, upload_to=b'files', blank=True)),
('title', models.CharField(max_length=80, null=True, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Image',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('image', sorl.thumbnail.fields.ImageField(upload_to=b'images')),
('title', models.CharField(max_length=80, unique=True, null=True, blank=True)),
('text', ckeditor.fields.RichTextField(null=True, blank=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ImagesUpload',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('zip_file', models.FileField(help_text=b'Select a .zip file of images to upload', upload_to=b'zip')),
],
options={
'verbose_name': 'imagepack',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Page',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('title', models.CharField(unique=True, max_length=80)),
('text', ckeditor.fields.RichTextField(null=True, blank=True)),
('in_menu', models.BooleanField(default=False)),
('weight', models.IntegerField(default=0, null=True, blank=True)),
('date', models.DateField(auto_now=True)),
('bgimage', models.ImageField(upload_to=b'images', blank=True)),
('slug', models.CharField(max_length=80, editable=False)),
('lnk', models.CharField(max_length=100, editable=False)),
('parent', models.ForeignKey(blank=True, to='content.Page', null=True)),
],
options={
'ordering': ['weight'],
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Press',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('image', sorl.thumbnail.fields.ImageField(null=True, upload_to=b'images', blank=True)),
('text', ckeditor.fields.RichTextField(null=True, blank=True)),
('page', models.ForeignKey(to='content.Page', unique=True)),
],
options={
'verbose_name': 'Press review',
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Reference',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('text', ckeditor.fields.RichTextField(null=True, blank=True)),
('page', models.ForeignKey(to='content.Page', unique=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Video',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('title', models.CharField(unique=True, max_length=80)),
('text', ckeditor.fields.RichTextField(null=True, blank=True)),
('page', models.ForeignKey(to='content.Page')),
],
options={
},
bases=(models.Model,),
),
migrations.AddField(
model_name='imagesupload',
name='page',
field=models.ForeignKey(to='content.Page'),
preserve_default=True,
),
migrations.AddField(
model_name='image',
name='page',
field=models.ForeignKey(to='content.Page'),
preserve_default=True,
),
migrations.AddField(
model_name='file',
name='page',
field=models.ForeignKey(to='content.Page'),
preserve_default=True,
),
migrations.AddField(
model_name='agenda',
name='page',
field=models.ForeignKey(to='content.Page', unique=True),
preserve_default=True,
),
]
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('content', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Settings',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('site_name', models.CharField(max_length=90, null=True, blank=True)),
('site_address', models.URLField(max_length=90, null=True, blank=True)),
('site_description', models.TextField(max_length=300, null=True, blank=True)),
('logo', models.ImageField(null=True, upload_to=b'images', blank=True)),
('home_page', models.ForeignKey(blank=True, to='content.Page', null=True)),
],
options={
'verbose_name_plural': 'Settings',
},
bases=(models.Model,),
),
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment