]> git.openstreetmap.org Git - osqa.git/commitdiff
making the question headline decoratable
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 31 Oct 2011 12:39:10 +0000 (12:39 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Mon, 31 Oct 2011 12:39:10 +0000 (12:39 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1198 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/models/question.py

index 136d3de78590cc3d2fbba2604ef09e412489b63b..6fae319e79088aeef1e9ccb5b625d11be12369c9 100644 (file)
@@ -27,6 +27,9 @@ class Question(Node):
 
     @property
     def headline(self):
+        return self._headline()
+
+    def _headline(self):
         if self.nis.deleted:
             return _('[deleted] ') + self.title