增加几个 model

This commit is contained in:
virusdefender
2015-07-18 17:17:33 +08:00
parent 3ee4b57802
commit c6d6b13072
3 changed files with 12 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ class AbstractProblem(models.Model):
# 最后更新时间
last_update_time = models.DateTimeField(auto_now=True)
# 这个题是谁创建的
author = models.ForeignKey(User)
created_by = models.ForeignKey(User)
# 来源
source = models.CharField(max_length=30, blank=True)
# 时间限制 单位是毫秒