增加题目提交总数和通过率统计字段

This commit is contained in:
virusdefender
2015-08-17 20:56:42 +08:00
parent 5eda65993b
commit 616aed6a5c
5 changed files with 38 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ class DBRouter(object):
def allow_migrate(self, db, app_label, model=None, **hints):
if app_label == "submission":
if db == "submission":
return db == app_label
return db == app_label
else:
return db == "default"
return db == "default"