Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Gave comments.FreeComment a get_absolute_url() method

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8b36eb11d392b0ef2d448a7295e2de11086c47a8 1 parent 716d00a
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/contrib/comments/models/
3  django/contrib/comments/models/
@@ -186,6 +186,9 @@ class FreeComment(meta.Model):
def __repr__(self):
return "%s: %s..." % (self.person_name, self.comment[:100])
+ def get_absolute_url(self):
+ return self.get_content_object().get_absolute_url() + "#c" + str(
def get_content_object(self):
Returns the object that this comment is a comment on. Returns None if
Please sign in to comment.
Something went wrong with that request. Please try again.