8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2025-01-26 18:14:20 +00:00

Création des champsdans le model user et écriture de la migration

This commit is contained in:
Yoann Pétri 2018-07-15 16:51:21 +02:00 committed by root
parent 7c3c951146
commit 00f53a8d9a

View file

@ -225,6 +225,13 @@ class User(RevMixin, FieldPermissionModelMixin, AbstractBaseUser,
blank=True,
null=True
)
verified = models.BooleanField(
default=False
)
verification_deadline = models.DateTimeField(
blank=True,
null = True
)
USERNAME_FIELD = 'pseudo'
REQUIRED_FIELDS = ['surname', 'email']