Move from make_full_url to build_absolute_uri
This commit is contained in:
parent
228f69ef25
commit
d4f8e3ab49
1 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ class Post(ModelMeta, TranslatableModel):
|
||||||
|
|
||||||
def get_image_full_url(self):
|
def get_image_full_url(self):
|
||||||
if self.main_image:
|
if self.main_image:
|
||||||
return self.make_full_url(self.main_image.url)
|
return self.build_absolute_uri(self.main_image.url)
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
def get_tags(self):
|
def get_tags(self):
|
||||||
|
@ -283,7 +283,7 @@ class Post(ModelMeta, TranslatableModel):
|
||||||
return get_setting('IMAGE_FULL_SIZE')
|
return get_setting('IMAGE_FULL_SIZE')
|
||||||
|
|
||||||
def get_full_url(self):
|
def get_full_url(self):
|
||||||
return self.make_full_url(self.get_absolute_url())
|
return self.build_absolute_uri(self.get_absolute_url())
|
||||||
|
|
||||||
|
|
||||||
class BasePostPlugin(CMSPlugin):
|
class BasePostPlugin(CMSPlugin):
|
||||||
|
|
Loading…
Reference in a new issue