mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #33476 -- Reformatted code with Black.
This commit is contained in:
committed by
Mariusz Felisiak
parent
f68fa8b45d
commit
9c19aff7c7
@@ -9,12 +9,13 @@ class CustomUserNonUniqueUsername(AbstractBaseUser):
|
||||
This model is not invalid if it is used with a custom authentication
|
||||
backend which supports non-unique usernames.
|
||||
"""
|
||||
|
||||
username = models.CharField(max_length=30)
|
||||
email = models.EmailField(blank=True)
|
||||
is_staff = models.BooleanField(default=False)
|
||||
is_superuser = models.BooleanField(default=False)
|
||||
|
||||
USERNAME_FIELD = 'username'
|
||||
REQUIRED_FIELDS = ['email']
|
||||
USERNAME_FIELD = "username"
|
||||
REQUIRED_FIELDS = ["email"]
|
||||
|
||||
objects = UserManager()
|
||||
|
||||
Reference in New Issue
Block a user