add problem template field

This commit is contained in:
virusdefender
2017-02-06 15:46:17 +08:00
parent f0540d5a00
commit a73ffd34cc
3 changed files with 30 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ class AbstractProblem(models.Model):
test_case_score = JSONField()
hint = RichTextField(blank=True, null=True)
languages = JSONField()
template = JSONField()
create_time = models.DateTimeField(auto_now_add=True)
# we can not use auto_now here
last_update_time = models.DateTimeField(blank=True, null=True)