Add frozen subtasks

This commit is contained in:
cuom1999 2022-12-20 02:24:24 -06:00
parent bdd30f94b7
commit 6bd5bb290f
13 changed files with 117 additions and 34 deletions

View file

@ -774,6 +774,13 @@ class ContestProblem(models.Model):
MinValueValidator(0, _("Why include a problem you " "can't submit to?"))
],
)
frozen_subtasks = models.CharField(
help_text=_("Only for format new IOI. Separated by commas, e.g: 2, 3"),
verbose_name=_("frozen subtasks"),
null=True,
blank=True,
max_length=20,
)
@property
def clarifications(self):