MCPcopy
hub / github.com/django/django / CustomEmailField

Class CustomEmailField

tests/auth_tests/models/with_custom_email_field.py:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class CustomEmailField(AbstractBaseUser):
16 username = models.CharField(max_length=255)
17 password = models.CharField(max_length=255)
18 email_address = models.EmailField(null=True)
19 is_active = models.BooleanField(default=True)
20
21 EMAIL_FIELD = "email_address"
22 USERNAME_FIELD = "username"
23
24 objects = CustomEmailFieldUserManager()

Callers 1

test_custom_emailMethod · 0.85

Calls 1

Tested by 1

test_custom_emailMethod · 0.68