]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/blog/migrations/0001_initial.py
fix: quick and dirty update to django 4.2
[sommitrealweird.git] / sommitrealweird / blog / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10.7 on 2017-06-22 09:40
3 from __future__ import unicode_literals
4
5 from django.db import migrations, models
6
7
8 class Migration(migrations.Migration):
9
10     initial = True
11
12     dependencies = [
13     ]
14
15     operations = [
16         migrations.CreateModel(
17             name='BlogEntry',
18             fields=[
19                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
20                 ('title', models.CharField(max_length=150)),
21                 ('islive', models.BooleanField(default=False)),
22                 ('format', models.CharField(choices=[(b'rst', b'reStructuredText'), (b'html', b'HTML')], max_length=10)),
23                 ('slug', models.SlugField()),
24                 ('publish_date', models.DateTimeField()),
25                 ('content', models.TextField()),
26             ],
27             options={
28                 'ordering': ['-publish_date'],
29             },
30         ),
31         migrations.CreateModel(
32             name='BlogSection',
33             fields=[
34                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
35                 ('title', models.CharField(max_length=150)),
36                 ('slug', models.SlugField()),
37             ],
38         ),
39         migrations.AddField(
40             model_name='blogentry',
41             name='sections',
42             field=models.ManyToManyField(to='blog.BlogSection'),
43         ),
44     ]