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 %}