MCPcopy
hub / github.com/django/django / create_superuser

Method create_superuser

tests/auth_tests/models/custom_user.py:45–51  ·  view source on GitHub ↗
(self, email, password, date_of_birth, **fields)

Source from the content-addressed store, hash-verified

43 return user
44
45 def create_superuser(self, email, password, date_of_birth, **fields):
46 u = self.create_user(
47 email, password=password, date_of_birth=date_of_birth, **fields
48 )
49 u.is_admin = True
50 u.save(using=self._db)
51 return u
52
53
54class CustomUser(AbstractBaseUser):

Callers

nothing calls this directly

Calls 2

create_userMethod · 0.95
saveMethod · 0.45

Tested by

no test coverage detected