Browse files

in friends list view return friends as friends variable not users

  • Loading branch information...
1 parent 7880fe9 commit 25ef6ae17b952ca765e6e58e57ca519f130bfaab @barszczmm committed Feb 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 friends/views.py
View
4 friends/views.py
@@ -15,9 +15,9 @@ def list_friends(request):
"""
Lists friends of currently logged user.
"""
- users = Friendship.objects.friends_for_user(request.user)
+ friends = Friendship.objects.friends_for_user(request.user)
return render_to_response('friends/friends_list.html',
- {'users': users},
+ {'friends': friends},
context_instance=RequestContext(request))
@login_required

0 comments on commit 25ef6ae

Please sign in to comment.