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

modify

parent 00bd9568
......@@ -16,8 +16,8 @@ class Topic(models.Model):
app_label = 'api'
group_id = models.IntegerField(verbose_name='日记ID')
create_time = models.DateTimeField(verbose_name='日记创建时间')
update_time = models.DateTimeField(verbose_name='日记更新时间')
create_time = models.DateTimeField(verbose_name='日记创建时间', auto_now_add=True)
update_time = models.DateTimeField(verbose_name='日记更新时间', auto_now_add=True)
name = models.CharField(verbose_name='日记名称')
user_id = models.IntegerField(verbose_name='用户ID')
description = models.CharField(verbose_name='日记本描述')
......
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