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

Login is possible

This commit is contained in:
Yohann D'ANELLO
2020-04-29 15:29:01 +02:00
parent 93735da1a4
commit eead385218
19 changed files with 904 additions and 97 deletions

View File

@ -1,3 +1,6 @@
import os
from datetime import date
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.utils.translation import gettext_lazy as _
@ -38,7 +41,7 @@ class TFJMUser(AbstractUser):
("female", _("Female")),
("non-binary", _("Non binary")),
],
verbose_name=_("address"),
verbose_name=_("gender"),
)
address = models.CharField(
@ -132,6 +135,7 @@ class TFJMUser(AbstractUser):
)
year = models.PositiveIntegerField(
default=os.getenv("TFJM_YEAR", date.today().year),
verbose_name=_("year"),
)