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

Commit

Permalink
Merge pull request #963 from yverdon/feature/performance_improve
Browse files Browse the repository at this point in the history
add select_related
  • Loading branch information
AlexandreJunod authored Mar 27, 2024
2 parents 03aa101 + 47138f2 commit 368ff0a
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 368ff0a

Please sign in to comment.