comparison 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
comparison
equal deleted inserted replaced
1000:abd4c02aefdb 1001:c6c3ba5cf6eb
1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
3
4 from django.db import models, migrations
5 import django.db.models.deletion
6
7
8 class Migration(migrations.Migration):
9
10 dependencies = [
11 ('forums', '__first__'),
12 ('news', '0006_category_forum_slug'),
13 ]
14
15 operations = [
16 migrations.AddField(
17 model_name='story',
18 name='forums_topic',
19 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),
20 preserve_default=True,
21 ),
22 migrations.AlterField(
23 model_name='category',
24 name='forum_slug',
25 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),
26 preserve_default=True,
27 ),
28 ]