1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-07-04 01:32:11 +02:00

Use a custom BBB url link, that is not necessary on visio.animath.live

This commit is contained in:
Yohann D'ANELLO
2021-01-22 18:25:37 +01:00
parent c06ae694cd
commit ea9d7cdd50
4 changed files with 28 additions and 11 deletions

View File

@ -355,19 +355,14 @@ class Pool(models.Model):
verbose_name=_("juries"),
)
bbb_code = models.CharField(
max_length=11,
bbb_url = models.CharField(
max_length=255,
blank=True,
default="",
verbose_name=_("BigBlueButton code"),
help_text=_("The code of the form xxx-xxx-xxx at the end of the BBB link."),
validators=[RegexValidator("[a-z]{3}-[a-z]{3}-[a-z]{3}")],
verbose_name=_("BigBlueButton URL"),
help_text=_("The link of the BBB visio for this pool."),
)
@property
def bbb_url(self):
return f"https://visio.animath.live/b/{self.bbb_code}"
@property
def solutions(self):
return Solution.objects.filter(participation__in=self.participations, final_solution=self.tournament.final)