1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-07 19:20:13 +02:00

Translate game fields into english

This commit is contained in:
2021-10-23 18:39:51 +02:00
parent 7396cfc017
commit 9f5807e3b5
4 changed files with 73 additions and 29 deletions

View File

@ -418,7 +418,7 @@ class Emprunt(models.Model):
class Game(models.Model):
DUREE = (
DURATIONS = (
('-1h', '-1h'),
('1-2h', '1-2h'),
('2-3h', '2-3h'),
@ -430,21 +430,21 @@ class Game(models.Model):
max_length=255,
verbose_name=_("name"),
)
proprietaire = models.ForeignKey(
owner = models.ForeignKey(
'users.User',
on_delete=models.PROTECT,
verbose_name=_("owner"),
)
duree = models.CharField(
choices=DUREE,
duration = models.CharField(
choices=DURATIONS,
max_length=255,
verbose_name=_("duration"),
)
nombre_joueurs_min = models.IntegerField(
players_min = models.IntegerField(
validators=[MinValueValidator(1)],
verbose_name=_("minimum number of players"),
)
nombre_joueurs_max = models.IntegerField(
players_max = models.IntegerField(
validators=[MinValueValidator(1)],
verbose_name=_('maximum number of players'),
)