Commit 9454e011 authored by 段英荣's avatar 段英荣

modify

parent c398bcad
......@@ -16,7 +16,7 @@ class Topic(models.Model):
verbose_name = u'日记'
db_table = 'topic'
id = models.IntegerField(verbose_name='日记ID')
id = models.IntegerField(verbose_name='日记ID',primary_key=True)
name = models.CharField(verbose_name='日记名称',max_length=100)
group_id = models.IntegerField(verbose_name='用户所在组ID')
user_id = models.IntegerField(verbose_name='用户ID')
......
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