Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
add select_related
Browse files Browse the repository at this point in the history
  • Loading branch information
monodo committed Mar 27, 2024
1 parent 2193c8c commit 47138f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geocity/apps/accounts/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def get_integrator_permissions():
def get_users_list_for_integrator_admin(user, remove_anonymous=False):
# Integrators can only view users for restricted email domains.
if user.is_superuser:
qs = User.objects.all()
qs = User.objects.select_related("userprofile")

# Used to remove anonymous users from the list
anonymous_users = []
Expand Down

0 comments on commit 47138f2

Please sign in to comment.