mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed #25746 -- Isolated inlined test models registration.
Thanks to Tim for the review.
This commit is contained in:
parent
3096f4b082
commit
a08fda2111
29 changed files with 285 additions and 371 deletions
|
@ -18,21 +18,3 @@ class CustomUserNonUniqueUsername(AbstractBaseUser):
|
|||
REQUIRED_FIELDS = ['email']
|
||||
|
||||
objects = UserManager()
|
||||
|
||||
|
||||
class CustomUserNonListRequiredFields(AbstractBaseUser):
|
||||
"A user with a non-list REQUIRED_FIELDS"
|
||||
username = models.CharField(max_length=30, unique=True)
|
||||
date_of_birth = models.DateField()
|
||||
|
||||
USERNAME_FIELD = 'username'
|
||||
REQUIRED_FIELDS = 'date_of_birth'
|
||||
|
||||
|
||||
class CustomUserBadRequiredFields(AbstractBaseUser):
|
||||
"A user with a USERNAME_FIELD that appears in REQUIRED_FIELDS (invalid)"
|
||||
username = models.CharField(max_length=30, unique=True)
|
||||
date_of_birth = models.DateField()
|
||||
|
||||
USERNAME_FIELD = 'username'
|
||||
REQUIRED_FIELDS = ['username', 'date_of_birth']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue