Inlucde the current user in the people list

(imported from commit a596b61a68453126726bd6f56a6c421022e1e395)
This commit is contained in:
Zev Benjamin 2013-01-15 17:29:13 -05:00
parent 14cccd9787
commit d3dd0a805a
1 changed files with 1 additions and 2 deletions

View File

@ -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