1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-07-05 07:14:08 +02:00

Don't access to team participation if the team is not validated

This commit is contained in:
Yohann D'ANELLO
2020-10-11 16:00:43 +02:00
parent 6e8b6fbc66
commit 552ea17f7d
4 changed files with 101 additions and 76 deletions

View File

@ -80,6 +80,13 @@ class Participation(models.Model):
verbose_name=_("problem number"),
)
valid = models.BooleanField(
null=True,
default=None,
verbose_name=_("valid"),
help_text=_("The video got the validation of the administrators."),
)
solution = models.OneToOneField(
"participation.Video",
on_delete=models.SET_NULL,