def bookmarks(request): requester = AuroraAuthenticationBackend.get_user( AuroraAuthenticationBackend(), request.user.id) comment_list = Comment.query_bookmarks(requester) template = 'Comments/bookmarks_list.html' return render_to_response(template, {'comment_list': comment_list}, context_instance=RequestContext(request))
def bookmarks(request): requester = RequestContext(request)['user'] comment_list = Comment.query_bookmarks(requester) template = 'Comments/bookmarks_list.html' return render_to_response(template, {'comment_list': comment_list}, context_instance=RequestContext(request))
def bookmarks(request): requester = AuroraAuthenticationBackend.get_user(AuroraAuthenticationBackend(), request.user.id) comment_list = Comment.query_bookmarks(requester) template = 'Comments/bookmarks_list.html' return render_to_response(template, {'comment_list': comment_list}, context_instance=RequestContext(request))