diff --git a/geocity/apps/accounts/users.py b/geocity/apps/accounts/users.py index 0d4901bd7..3a8968a3d 100644 --- a/geocity/apps/accounts/users.py +++ b/geocity/apps/accounts/users.py @@ -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 = []