summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2018-11-17 21:58:50 +0100
committerJelle van der Waa <jelle@vdwaa.nl>2018-11-17 21:58:50 +0100
commit3fc26cdb277adfa462166c5ba823760372ada43c (patch)
treeaecb56ae44fe3db82eae5bd342016eb54e72c099 /news
parente2483bb86c930a0f222b3dd678144ebc07b395b2 (diff)
downloadarchweb-3fc26cdb277adfa462166c5ba823760372ada43c.tar.gz
archweb-3fc26cdb277adfa462166c5ba823760372ada43c.zip
Squash all migrations
Diffstat (limited to 'news')
-rw-r--r--news/migrations/0001_squashed_0002_news_send_announce.py42
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',
+ },
+ ),
+ ]