]> git.openstreetmap.org Git - osqa.git/commitdiff
Fixes comment edit, which was being performed against already parsed markdown.
authorhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 1 Jan 2011 18:36:59 +0000 (18:36 +0000)
committerhernani <hernani@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Sat, 1 Jan 2011 18:36:59 +0000 (18:36 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@659 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/views/commands.py

index fcdd0561a79b2410fd4da7b42e5cd4129e9bb654..191cae01d07ab5d1b6b497e22a7e6deed63e4173 100644 (file)
@@ -284,7 +284,7 @@ def node_markdown(request, id):
         raise AnonymousNotAllowedException(_('accept answers'))
 
     node = get_object_or_404(Node, id=id)
         raise AnonymousNotAllowedException(_('accept answers'))
 
     node = get_object_or_404(Node, id=id)
-    return HttpResponse(node.body, mimetype="text/plain")
+    return HttpResponse(node.active_revision.body, mimetype="text/plain")
 
 
 @decorate.withfn(command)
 
 
 @decorate.withfn(command)