remote images

This commit is contained in:
j 2018-01-01 14:02:01 +01:00
parent b797e8e90d
commit 72372527b5

View File

@ -124,6 +124,8 @@ class Content(models.Model):
@property
def image_url(self):
if self.image:
if self.image.startswith('http'):
return self.image
return settings.IMAGE_PREFIX + self.image
def images(self):