From 53aaeaab50cb95338e9fad91b8c13f3fe78e3466 Mon Sep 17 00:00:00 2001 From: fbormann Date: Tue, 25 Oct 2016 11:20:36 -0300 Subject: [PATCH] #187 modified profile page and added cpf as a required item --- users/models.py | 2 +- users/templates/users/profile.html | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++----------------------- 2 files changed, 51 insertions(+), 24 deletions(-) diff --git a/users/models.py b/users/models.py index 4782ce4..634c7f1 100644 --- a/users/models.py +++ b/users/models.py @@ -34,7 +34,7 @@ class User(AbstractBaseUser, PermissionsMixin): is_active = models.BooleanField(_('Active'), default = True) USERNAME_FIELD = 'username' - REQUIRED_FIELDS = ['email'] + REQUIRED_FIELDS = ['email', 'cpf'] objects = UserManager() diff --git a/users/templates/users/profile.html b/users/templates/users/profile.html index 426e474..7a209b0 100644 --- a/users/templates/users/profile.html +++ b/users/templates/users/profile.html @@ -14,7 +14,7 @@ {% block sidebar %}