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:
@ -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"),
|
||||
|
Reference in New Issue
Block a user