]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/models/question.py
Adding ability to convert comments to answers.
[osqa.git] / forum / models / question.py
index 55f37c47ca787ec207b992622141463983d23884..a185e026bd623d56e0edb4d392ab9f2af95571db 100644 (file)
@@ -44,6 +44,9 @@ class Question(Node):
     @models.permalink    
     def get_absolute_url(self):
         return ('question', (), {'id': self.id, 'slug': django_urlquote(slugify(self.title))})
+        
+    def meta_description(self):
+        return self.summary
 
     def get_revision_url(self):
         return reverse('question_revisions', args=[self.id])