]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/bpcms/migrations/0001_initial.py
Fix up for django 1.10
[sommitrealweird.git] / sommitrealweird / bpcms / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10.7 on 2017-06-22 09:39
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6 import django.db.models.deletion
7
8
9 class Migration(migrations.Migration):
10
11     initial = True
12
13     dependencies = [
14     ]
15
16     operations = [
17         migrations.CreateModel(
18             name='CSSDocument',
19             fields=[
20                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
21                 ('title', models.CharField(max_length=150)),
22                 ('slug', models.SlugField()),
23                 ('content', models.TextField()),
24             ],
25         ),
26         migrations.CreateModel(
27             name='Document',
28             fields=[
29                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
30                 ('title', models.CharField(max_length=150)),
31                 ('islive', models.BooleanField(default=False)),
32                 ('format', models.CharField(choices=[(b'rst', b'reStructuredText'), (b'html', b'HTML')], max_length=10)),
33                 ('slug', models.SlugField()),
34                 ('content', models.TextField()),
35                 ('extracss', models.ManyToManyField(blank=True, null=True, to='bpcms.CSSDocument')),
36             ],
37             options={
38                 'ordering': ['folder'],
39             },
40         ),
41         migrations.CreateModel(
42             name='Folder',
43             fields=[
44                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
45                 ('title', models.CharField(max_length=150)),
46                 ('slug', models.SlugField()),
47                 ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='bpcms.Folder')),
48             ],
49         ),
50         migrations.AddField(
51             model_name='document',
52             name='folder',
53             field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='bpcms.Folder'),
54         ),
55     ]