Make Entry.get_absolute_url actually return an absolute URL, always
This commit is contained in:
parent
0fb62f5962
commit
6fb289727c
1 changed files with 2 additions and 1 deletions
|
@ -131,7 +131,8 @@ class Entry(ModelMeta, TimeStampedModel):
|
||||||
return '{0} {1}: {2}'.format(self.kind, self.id, self.title)
|
return '{0} {1}: {2}'.format(self.kind, self.id, self.title)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return self.url
|
base = 'https://' + Site.objects.get_current().domain
|
||||||
|
return urljoin(base, self.url)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def url(self):
|
def url(self):
|
||||||
|
|
Loading…
Reference in a new issue