diff options
author | jelle van der Waa <jelle@vdwaa.nl> | 2018-12-16 15:29:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-16 15:29:02 +0100 |
commit | 21211d3cb4701b913493e1e6cb259233d496addb (patch) | |
tree | 7d6bad1a37059a3313beed48b71adb9fbf5f8d40 /news | |
parent | 77cb6536e7d8017d0e84f57d519417db87c0c944 (diff) | |
parent | 3fc26cdb277adfa462166c5ba823760372ada43c (diff) | |
download | archweb-21211d3cb4701b913493e1e6cb259233d496addb.tar.gz archweb-21211d3cb4701b913493e1e6cb259233d496addb.zip |
Merge pull request #154 from jelly/squashmigrations
squash all migrations
Diffstat (limited to 'news')
-rw-r--r-- | news/migrations/0001_squashed_0002_news_send_announce.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/news/migrations/0001_squashed_0002_news_send_announce.py b/news/migrations/0001_squashed_0002_news_send_announce.py new file mode 100644 index 00000000..bc2e5eac --- /dev/null +++ b/news/migrations/0001_squashed_0002_news_send_announce.py @@ -0,0 +1,42 @@ +# -*- 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): + + replaces = [(b'news', '0001_initial'), (b'news', '0002_news_send_announce')] + + 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=b'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=b'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', + }, + ), + ] |