MCPcopy
hub / github.com/django/django / get_email_field_name

Method get_email_field_name

django/contrib/auth/base_user.py:152–156  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

150
151 @classmethod
152 def get_email_field_name(cls):
153 try:
154 return cls.EMAIL_FIELD
155 except AttributeError:
156 return "email"
157
158 @classmethod
159 def normalize_username(cls, username):

Callers 6

get_usersMethod · 0.80
saveMethod · 0.80
_make_hash_valueMethod · 0.80
test_default_emailMethod · 0.80
test_custom_emailMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_default_emailMethod · 0.64
test_custom_emailMethod · 0.64