From: jordan Date: Mon, 14 Nov 2011 20:41:03 +0000 (+0000) Subject: removing tabs/spaces inconsistency in the Comment model, making the Comment.comment... X-Git-Tag: live~116 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/b11857317cc33a15db3876e6b1a5e808a93ae969 removing tabs/spaces inconsistency in the Comment model, making the Comment.comment method return a private method git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1201 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/models/comment.py b/forum/models/comment.py index 45c5962..afa674f 100644 --- a/forum/models/comment.py +++ b/forum/models/comment.py @@ -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