Create and save a regular User with the given email and password.
(self, email, password=None, **extra_fields)
| 87 | return user |
| 88 | |
| 89 | def create_user(self, email, password=None, **extra_fields): # type: ignore[no-untyped-def] |
| 90 | """Create and save a regular User with the given email and password.""" |
| 91 | extra_fields.setdefault("is_staff", False) |
| 92 | extra_fields.setdefault("is_superuser", False) |
| 93 | return self._create_user(email, password, **extra_fields) # type: ignore[no-untyped-call] |
| 94 | |
| 95 | def create_superuser(self, email, password, **extra_fields): # type: ignore[no-untyped-def] |
| 96 | """Create and save a SuperUser with the given email and password.""" |