Add contest freeze
This commit is contained in:
parent
2c39774ff7
commit
a35ea0f6d5
13 changed files with 338 additions and 215 deletions
|
@ -128,6 +128,14 @@ class Contest(models.Model):
|
|||
"Format hh:mm:ss. For example, if you want a 2-hour contest, enter 02:00:00"
|
||||
),
|
||||
)
|
||||
freeze_after = models.DurationField(
|
||||
verbose_name=_("freeze after"),
|
||||
blank=True,
|
||||
null=True,
|
||||
help_text=_(
|
||||
"Format hh:mm:ss. For example, if you want to freeze contest after 2 hours, enter 02:00:00"
|
||||
),
|
||||
)
|
||||
is_visible = models.BooleanField(
|
||||
verbose_name=_("publicly visible"),
|
||||
default=False,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue