添加了题目列表每个题目前边状态指示标志:ac /没有/正在进行,因为数据是存在用户表里的所以缓存的时候可以做到与题目数据分开

This commit is contained in:
sxw@401
2015-09-15 16:41:13 +08:00
parent 0683d0914b
commit 01215a71ad
7 changed files with 62 additions and 3 deletions

View File

@@ -30,6 +30,9 @@ class User(AbstractBaseUser):
create_time = models.DateTimeField(auto_now_add=True)
# 0代表不是管理员 1是普通管理员 2是超级管理员
admin_type = models.IntegerField(default=0)
# JSON字典用来表示该用户的问题的解决状态 1为ac2为正在进行
problems_status = models.TextField(blank=True)
USERNAME_FIELD = 'username'
REQUIRED_FIELDS = []