From 00f53a8d9a28c5cd1616cd132591437e6285a961 Mon Sep 17 00:00:00 2001 From: Yoann Pietri Date: Sun, 15 Jul 2018 16:51:21 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20des=20champsdans=20le=20model?= =?UTF-8?q?=20user=20et=20=C3=A9criture=20de=20la=20migration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/users/models.py b/users/models.py index 6c6837d6..b9284b08 100644 --- a/users/models.py +++ b/users/models.py @@ -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']