- return render_to_response('influences/influence_detail.html', {'object' : o}, RequestContext(request))
+
+ # Show all comments to staff, but only public comments to other
+ # users
+ if request.user.is_staff:
+ comments = ThreadedComment.objects.get_tree(o)
+ else:
+ comments = ThreadedComment.public.get_tree(o)
+
+ context = {
+ 'object' : o,
+ 'comments' : comments,
+ 'comment_form' : ThreadedCommentForm(),
+ }
+ return render_to_response('influences/influence_detail.html', context, RequestContext(request))