src/cm/models.py
changeset 144 e7e1bc64f613
parent 140 87eec0c11516
child 146 51c34f5970c2
child 154 8cb89c153140
--- a/src/cm/models.py	Wed Feb 03 20:55:30 2010 +0100
+++ b/src/cm/models.py	Wed Feb 03 21:49:04 2010 +0100
@@ -743,7 +743,7 @@
 
     def linkable_comment_title(self, html=True, link=True):
         if self.comment:
-            format_args = {'link':absolute_reverse('text-view-show-comment', args=[self.text.key, self.comment.key]), 'title':self.comment.title}
+            format_args = {'link':absolute_reverse('text-view-show-comment', args=[self.text.key, self.comment.id_key]), 'title':self.comment.title}
             if html and not self.comment.deleted and not self.text.deleted:
                 return mark_safe(u'<a href="%(link)s">%(title)s</a>' % format_args)
             else :