Mercurial > public > sg101
annotate news/migrations/0007_auto_20151125_2300.py @ 1192:980123d47763
Fix link to queues fork.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Mar 2022 15:53:41 -0500 |
parents | c6c3ba5cf6eb |
children |
rev | line source |
---|---|
bgneal@1001 | 1 # -*- coding: utf-8 -*- |
bgneal@1001 | 2 from __future__ import unicode_literals |
bgneal@1001 | 3 |
bgneal@1001 | 4 from django.db import models, migrations |
bgneal@1001 | 5 import django.db.models.deletion |
bgneal@1001 | 6 |
bgneal@1001 | 7 |
bgneal@1001 | 8 class Migration(migrations.Migration): |
bgneal@1001 | 9 |
bgneal@1001 | 10 dependencies = [ |
bgneal@1001 | 11 ('forums', '__first__'), |
bgneal@1001 | 12 ('news', '0006_category_forum_slug'), |
bgneal@1001 | 13 ] |
bgneal@1001 | 14 |
bgneal@1001 | 15 operations = [ |
bgneal@1001 | 16 migrations.AddField( |
bgneal@1001 | 17 model_name='story', |
bgneal@1001 | 18 name='forums_topic', |
bgneal@1001 | 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), |
bgneal@1001 | 20 preserve_default=True, |
bgneal@1001 | 21 ), |
bgneal@1001 | 22 migrations.AlterField( |
bgneal@1001 | 23 model_name='category', |
bgneal@1001 | 24 name='forum_slug', |
bgneal@1001 | 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), |
bgneal@1001 | 26 preserve_default=True, |
bgneal@1001 | 27 ), |
bgneal@1001 | 28 ] |