correct the required fields for user object
Run Tests / Run Tests (push) Successful in 44s Details

This commit is contained in:
James Ravenscroft 2024-12-20 09:14:21 +00:00
parent a054ef0018
commit ee6d7c26a1
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class User(AbstractUser):
last_name = models.CharField(max_length=150, blank=False)
USERNAME_FIELD = "email"
REQUIRED_FIELDS = ["full_name"]
REQUIRED_FIELDS = ["first_name", "last_name"]
objects = UserManager() # type: ignore