From d3dd0a805a02ef0e5c5f0dda7c63a8e5cad69531 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Tue, 15 Jan 2013 17:29:13 -0500 Subject: [PATCH] Inlucde the current user in the people list (imported from commit a596b61a68453126726bd6f56a6c421022e1e395) --- zephyr/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zephyr/views.py b/zephyr/views.py index d4eb669cad..e56deabfe6 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -333,8 +333,7 @@ def home(request): people = [{'email' : profile.user.email, 'full_name' : profile.full_name} for profile in - UserProfile.objects.select_related().filter(realm=user_profile.realm) if - profile != user_profile] + UserProfile.objects.select_related().filter(realm=user_profile.realm)] subscriptions = Subscription.objects.select_related().filter(user_profile_id=user_profile, active=True) streams = [get_display_recipient(sub.recipient) for sub in subscriptions