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
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)