mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 21:27:10 +00:00
added max_attemps
This commit is contained in:
@@ -21,6 +21,7 @@ class CompetitionTask(BaseModel):
|
|||||||
title = models.TextField(verbose_name="заголовок", max_length=50)
|
title = models.TextField(verbose_name="заголовок", max_length=50)
|
||||||
description = models.TextField(verbose_name="описание", max_length=300)
|
description = models.TextField(verbose_name="описание", max_length=300)
|
||||||
type = models.CharField(choices=CompetitionTaskType, max_length=8)
|
type = models.CharField(choices=CompetitionTaskType, max_length=8)
|
||||||
|
max_attemps = models.PositiveSmallIntegerField()
|
||||||
|
|
||||||
# only when "input" or "checker" type
|
# only when "input" or "checker" type
|
||||||
correct_answer_file = models.FileField(
|
correct_answer_file = models.FileField(
|
||||||
|
|||||||
Reference in New Issue
Block a user