0004_auto_20170530_2058.py 2.09 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('forum', '0003_auto_20170510_1754'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='forummessage',
            options={'ordering': ['-date']},
        ),
        migrations.AlterModelOptions(
            name='forumtopic',
            options={'ordering': ['-_last_message__date']},
        ),
        migrations.AddField(
            model_name='forum',
            name='_last_message',
25
            field=models.ForeignKey(related_name='forums_where_its_last', null=True, to='forum.ForumMessage', verbose_name='the last message'),
26 27 28 29
        ),
        migrations.AddField(
            model_name='forum',
            name='_topic_number',
30
            field=models.IntegerField(verbose_name='number of topics', default=0),
31 32 33 34
        ),
        migrations.AddField(
            model_name='forummessage',
            name='_deleted',
35
            field=models.BooleanField(verbose_name='is deleted', default=False),
36 37 38 39
        ),
        migrations.AddField(
            model_name='forumtopic',
            name='_last_message',
40 41 42 43 44 45
            field=models.ForeignKey(related_name='+', null=True, to='forum.ForumMessage', verbose_name='the last message'),
        ),
        migrations.AddField(
            model_name='forumtopic',
            name='_message_number',
            field=models.IntegerField(verbose_name='number of messages', default=0),
46 47 48 49
        ),
        migrations.AddField(
            model_name='forumtopic',
            name='_title',
50
            field=models.CharField(max_length=64, verbose_name='title', blank=True),
51 52 53 54
        ),
        migrations.AlterField(
            model_name='forum',
            name='description',
55
            field=models.CharField(max_length=512, verbose_name='description', default=''),
56 57 58 59
        ),
        migrations.AlterField(
            model_name='forum',
            name='id',
60
            field=models.AutoField(serialize=False, db_index=True, primary_key=True),
61 62
        ),
    ]