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

Update a team in a popup <3

This commit is contained in:
Yohann D'ANELLO
2020-09-24 11:15:54 +02:00
parent 8c70ef3835
commit 4975044046
11 changed files with 146 additions and 50 deletions

View File

@ -2,6 +2,8 @@ from django.core.validators import RegexValidator
from django.db import models
from django.db.models import Index
from django.utils.crypto import get_random_string
from django.utils.functional import lazy
from django.utils.text import format_lazy
from django.utils.translation import gettext_lazy as _
@ -56,7 +58,7 @@ class Participation(models.Model):
)
problem = models.IntegerField(
choices=[(i, _("Problem #{problem:d}").format(problem=i)) for i in range(1, 5)],
choices=[(i, format_lazy(_("Problem #{problem:d}"), problem=i)) for i in range(1, 5)],
null=True,
default=None,
verbose_name=_("problem number"),