diff --git a/zephyr/views.py b/zephyr/views.py index 4ac95c1b38..b4da3e2e9d 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -1343,7 +1343,8 @@ def get_status_list(requesting_user_profile): return json_success({'presences': user_statuses}) for presence in UserPresence.objects.filter( - user_profile__realm=requesting_user_profile.realm).select_related('user_profile', 'client'): + user_profile__realm=requesting_user_profile.realm).select_related( + 'user_profile', 'user_profile__user', 'client'): user_statuses[presence.user_profile.user.email][presence.client.name] = \ presence_to_dict(presence)