支持选取已有题目作为比赛题目

This commit is contained in:
zema1
2017-12-03 18:52:32 +08:00
parent 4c2db34b9d
commit 0f9f34df65
7 changed files with 75 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ from utils.models import JSONField
from account.models import User
from contest.models import Contest
from utils.models import RichTextField
from utils.constants import Choices
class ProblemTag(models.Model):
@@ -13,7 +14,7 @@ class ProblemTag(models.Model):
db_table = "problem_tag"
class ProblemRuleType(object):
class ProblemRuleType(Choices):
ACM = "ACM"
OI = "OI"