Ejemplo n.º 1
0
 def get_absolute_uri(self):
     """
     returned the complete absolute URI (with the domain/host part)
     """
     url = self.get_absolute_url()
     uri_base = get_uri_base()
     return uri_base + url
Ejemplo n.º 2
0
 def get_permalink(self):
     uri_base = get_uri_base()
     prefix = getattr(settings, "PERMALINK_URL_PREFIX", "_goto")
     return "%s/%s/%s/%s/" % (uri_base, prefix, self.id, self.shortcut)