删除 ManyToMany 字段无效的 null=True

This commit is contained in:
virusdefender
2015-08-12 22:59:05 +08:00
parent ba57341dbd
commit f6c3ceee40
2 changed files with 20 additions and 1 deletions

View File

@@ -49,4 +49,4 @@ class Problem(AbstractProblem):
# 难度 0 - n
difficulty = models.IntegerField()
# 标签
tags = models.ManyToManyField(ProblemTag, null=True)
tags = models.ManyToManyField(ProblemTag)