summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-06-28 12:06:54 -0500
committerDan McGee <dan@archlinux.org>2014-09-01 18:26:05 -0500
commit0896b5697a09e1da532e9e42bbc4b2da2dd2d856 (patch)
treecd88e0448c4e03dc503cfa6748b0866c02603537 /news
parent5232b186dc44fc053adfcbd3860a4b33da399232 (diff)
Add auto-generated migrations from new Django migrations framework
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'news')
-rw-r--r--news/migrations/0001_initial.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/news/migrations/0001_initial.py b/news/migrations/0001_initial.py
new file mode 100644
index 00000000..fc6b6cfb
--- /dev/null
+++ b/news/migrations/0001_initial.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+import django.db.models.deletion
+from django.conf import settings
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='News',
+ fields=[
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
+ ('slug', models.SlugField(unique=True, max_length=255)),
+ ('postdate', models.DateTimeField(verbose_name=b'post date', db_index=True)),
+ ('last_modified', models.DateTimeField(editable=False, db_index=True)),
+ ('title', models.CharField(max_length=255)),
+ ('guid', models.CharField(max_length=255, editable=False)),
+ ('content', models.TextField()),
+ ('safe_mode', models.BooleanField(default=True)),
+ ('author', models.ForeignKey(related_name=b'news_author', on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)),
+ ],
+ options={
+ 'ordering': ('-postdate',),
+ 'db_table': 'news',
+ 'verbose_name_plural': 'news',
+ 'get_latest_by': 'postdate',
+ },
+ bases=(models.Model,),
+ ),
+ ]