Skip to content

Commit

Permalink
fix(account): Use select_related
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasN5 committed Apr 12, 2024
1 parent a88a63c commit 30dfb4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allauth/account/utils.py
Expand Up @@ -421,7 +421,7 @@ def filter_users_by_email(email, is_active=None, prefer_verified=False):
from .models import EmailAddress

User = get_user_model()
mails = EmailAddress.objects.filter(email__iexact=email).prefetch_related("user")
mails = EmailAddress.objects.filter(email__iexact=email).select_related("user")
mails = list(mails)
is_verified = False
if prefer_verified:
Expand Down

0 comments on commit 30dfb4f

Please sign in to comment.