From addbdf44aacf8627ae0effffe34a633ef91bb769 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 31 Oct 2008 11:29:31 +0100 Subject: [PATCH] Move quote_reply out of the influence_detail function. --- influences/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/influences/views.py b/influences/views.py index f95cfb4..cbef4fb 100644 --- a/influences/views.py +++ b/influences/views.py @@ -150,12 +150,12 @@ def influence_list(request): os = Influence.objects.filter(character__player=request.user) return render_to_response('influences/influence_list.html', {'object_list' : os}, RequestContext(request)) +def quote_reply(comment): + return "\n".join(["> " + l for l in comment.comment.split("\n")]) + @login_required def influence_detail(request, object_id): - def quote_reply(comment): - return "\n".join(["> " + l for l in comment.comment.split("\n")]) - o = Influence.objects.get(pk=object_id) # Don't show other player's influences if (o.character.player != request.user): -- 2.30.2