MCPcopy Create free account
hub / github.com/codingjoe/django-mail-auth / get_users

Method get_users

mailauth/forms.py:115–120  ·  view source on GitHub ↗
(self, email=None)

Source from the content-addressed store, hash-verified

113 self.fields[self.field_name] = field
114
115 def get_users(self, email=None):
116 if connection.vendor == "postgresql":
117 query = {self.field_name: email}
118 else:
119 query = {f"{self.field_name}__iexact": email}
120 return get_user_model()._default_manager.filter(**query).iterator()
121
122 def save(self):
123 """

Callers 2

saveMethod · 0.95
test_get_usersMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_get_usersMethod · 0.64