Move from make_full_url to build_absolute_uri

This commit is contained in:
Iacopo Spalletti 2016-03-03 20:12:03 +01:00
parent 228f69ef25
commit d4f8e3ab49

View file

@ -252,7 +252,7 @@ class Post(ModelMeta, TranslatableModel):
def get_image_full_url(self):
if self.main_image:
return self.make_full_url(self.main_image.url)
return self.build_absolute_uri(self.main_image.url)
return ''
def get_tags(self):
@ -283,7 +283,7 @@ class Post(ModelMeta, TranslatableModel):
return get_setting('IMAGE_FULL_SIZE')
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):