diff news/migrations/0007_auto_20151125_2300.py @ 1001:c6c3ba5cf6eb

V2 news stories use forums for comments.
author Brian Neal <bgneal@gmail.com>
date Thu, 26 Nov 2015 00:27:42 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/news/migrations/0007_auto_20151125_2300.py	Thu Nov 26 00:27:42 2015 -0600
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('forums', '__first__'),
+        ('news', '0006_category_forum_slug'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='story',
+            name='forums_topic',
+            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, blank=True, to='forums.Topic', help_text=b'Forum topic used for comments', db_index=False),
+            preserve_default=True,
+        ),
+        migrations.AlterField(
+            model_name='category',
+            name='forum_slug',
+            field=models.CharField(default=b'', help_text=b'Identifies the forum to create comment threads in for stories in this category. If blank, no comment threads will be created for stories in this category.', max_length=80, blank=True),
+            preserve_default=True,
+        ),
+    ]