Commit c398bcad authored by 段英荣's avatar 段英荣

modify

parent 09ad4446
......@@ -42,8 +42,8 @@ class Tag(models.Model):
id = models.IntegerField(primary_key=True,verbose_name=u"主键ID")
is_deleted = models.BooleanField(verbose_name=u"是否删除")
name = models.CharField(verbose_name=u"标签名称")
description = models.CharField(verbose_name=u"标签描述")
icon_url=models.CharField(verbose_name=u"icon_url")
name = models.CharField(verbose_name=u"标签名称",max_length=128)
description = models.TextField(verbose_name=u"标签描述")
icon_url=models.CharField(verbose_name=u"icon_url",max_length=120)
create_time = models.DateTimeField(verbose_name=u'创建时间',default=datetime.datetime.fromtimestamp(0))
update_time = models.DateTimeField(verbose_name=u'更新时间', default=datetime.datetime.fromtimestamp(0))
......@@ -17,18 +17,18 @@ class Topic(models.Model):
db_table = 'topic'
id = models.IntegerField(verbose_name='日记ID')
name = models.CharField(verbose_name='日记名称')
name = models.CharField(verbose_name='日记名称',max_length=100)
group_id = models.IntegerField(verbose_name='用户所在组ID')
user_id = models.IntegerField(verbose_name='用户ID')
description = models.CharField(verbose_name='日记本描述')
content = models.CharField(verbose_name='日记本内容')
description = models.CharField(verbose_name='日记本描述',max_length=200)
content = models.CharField(verbose_name='日记本内容',max_length=1000)
share_num = models.IntegerField(verbose_name='')
vote_num = models.IntegerField(verbose_name='点赞数')
reply_num = models.IntegerField(verbose_name='回复数')
cover = models.CharField(verbose_name='')
cover = models.CharField(verbose_name='',max_length=200)
is_online = models.BooleanField(verbose_name='是否上线')
is_deleted = models.BooleanField(verbose_name='是否删除')
content_level = models.CharField(verbose_name='内容等级')
content_level = models.CharField(verbose_name='内容等级',max_length=3)
create_time = models.DateTimeField(verbose_name=u'日记创建时间',default=datetime.datetime.fromtimestamp(0))
update_time = models.DateTimeField(verbose_name=u'日记更新时间', default=datetime.datetime.fromtimestamp(0))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment