2017-05-20 10:47:48 +00:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django . db import migrations , models
2017-05-31 17:50:41 +00:00
import django . db . models . deletion
2017-05-20 10:47:48 +00:00
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 ' ,
2017-05-31 17:50:41 +00:00
field = models . ForeignKey ( verbose_name = ' the last message ' , to = ' forum.ForumMessage ' , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' forums_where_its_last ' ) ,
2017-05-20 10:47:48 +00:00
) ,
migrations . AddField (
model_name = ' forum ' ,
name = ' _topic_number ' ,
2017-05-31 17:50:41 +00:00
field = models . IntegerField ( default = 0 , verbose_name = ' number of topics ' ) ,
2017-05-20 10:47:48 +00:00
) ,
migrations . AddField (
model_name = ' forummessage ' ,
name = ' _deleted ' ,
2017-05-31 17:50:41 +00:00
field = models . BooleanField ( default = False , verbose_name = ' is deleted ' ) ,
2017-05-20 10:47:48 +00:00
) ,
migrations . AddField (
model_name = ' forumtopic ' ,
name = ' _last_message ' ,
2017-05-31 17:50:41 +00:00
field = models . ForeignKey ( verbose_name = ' the last message ' , to = ' forum.ForumMessage ' , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' + ' ) ,
2017-05-30 20:10:50 +00:00
) ,
migrations . AddField (
model_name = ' forumtopic ' ,
name = ' _message_number ' ,
2017-05-31 17:50:41 +00:00
field = models . IntegerField ( default = 0 , verbose_name = ' number of messages ' ) ,
2017-05-20 10:47:48 +00:00
) ,
migrations . AddField (
model_name = ' forumtopic ' ,
name = ' _title ' ,
2017-05-31 17:50:41 +00:00
field = models . CharField ( max_length = 64 , blank = True , verbose_name = ' title ' ) ,
2017-05-20 10:47:48 +00:00
) ,
migrations . AlterField (
model_name = ' forum ' ,
name = ' description ' ,
2017-05-31 17:50:41 +00:00
field = models . CharField ( max_length = 512 , default = ' ' , verbose_name = ' description ' ) ,
2017-05-20 10:47:48 +00:00
) ,
migrations . AlterField (
model_name = ' forum ' ,
name = ' id ' ,
2017-05-31 17:50:41 +00:00
field = models . AutoField ( primary_key = True , serialize = False , db_index = True ) ,
2017-05-20 10:47:48 +00:00
) ,
]