Permalink
Browse files

ExternalLink needed get_absolute_url()

  • Loading branch information...
1 parent 77942a7 commit 47d382b28347ebfb03cd3043107b24db3f118fe0 @evildmp committed Mar 21, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 links/models.py
View
@@ -175,6 +175,10 @@ class Meta:
def __unicode__(self):
return self.title or self.url
+
+ def get_absolute_url(self):
+ return self.url
+
def save(self, *args, **kwargs):
# here we either find the ExternalSite to attach to, or create it if it doesn't exist
# split url into component parts

0 comments on commit 47d382b

Please sign in to comment.