summaryrefslogtreecommitdiffstats
path: root/news/migrations/0001_squashed_0002_news_send_announce.py
blob: 9250e4e4756bc690da8cf4de3a9cc933d2689def (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
38
39
40
# -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-17 20:55
from __future__ import unicode_literals

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='News',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('slug', models.SlugField(max_length=255, unique=True)),
                ('postdate', models.DateTimeField(db_index=True, verbose_name='post date')),
                ('last_modified', models.DateTimeField(db_index=True, editable=False)),
                ('title', models.CharField(max_length=255)),
                ('guid', models.CharField(editable=False, max_length=255)),
                ('content', models.TextField()),
                ('safe_mode', models.BooleanField(default=True)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='news_author', to=settings.AUTH_USER_MODEL)),
                ('send_announce', models.BooleanField(default=True)),
            ],
            options={
                'ordering': ('-postdate',),
                'db_table': 'news',
                'verbose_name_plural': 'news',
                'get_latest_by': 'postdate',
            },
        ),
    ]