]> git.openstreetmap.org Git - osqa.git/commitdiff
removing tabs/spaces inconsistency in the Comment model, making the Comment.comment...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 14 Nov 2011 20:41:03 +0000 (20:41 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 14 Nov 2011 20:41:03 +0000 (20:41 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1201 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/comment.py

index 45c5962813c833244f04d1709fae5fa10a3257d6..afa674f403381c658980d3420f2f2f53673e1180 100644 (file)
@@ -16,8 +16,11 @@ class Comment(Node):
 
     @property
     def comment(self):
+        return self._comment()
+
+    def _comment(self):
         if settings.FORM_ALLOW_MARKDOWN_IN_COMMENTS:
-               return self.as_markdown('limitedsyntax')
+            return self.as_markdown('limitedsyntax')
         else:
             return self.body