summaryrefslogtreecommitdiff
path: root/app/publications/migrations/0003_auto_20190131_0923.py
blob: 6844c556ce29a10668041cb6112ac54b4684d07a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Generated by Django 2.1.1 on 2019-01-31 09:23

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('publications', '0002_editor_section'),
    ]

    operations = [
        migrations.CreateModel(
            name='Section',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250)),
                ('slug', models.SlugField(blank=True)),
                ('date_created', models.DateTimeField(auto_now_add=True)),
                ('date_updated', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='editor',
            name='section',
        ),
        migrations.AlterField(
            model_name='publication',
            name='status',
            field=models.IntegerField(choices=[(0, 'Not Published'), (1, 'Published')], default=0),
        ),
        migrations.AddField(
            model_name='editor',
            name='section',
            field=models.ManyToManyField(blank=True, to='publications.Section'),
        ),
    ]