smaller images

This commit is contained in:
root 2019-05-24 10:29:06 +00:00
parent 6ccd7b8e1a
commit 5f0c52aeae

View File

@ -146,7 +146,7 @@ class Content(models.Model):
@property
def image_url(self):
if self.photo:
return self.photo.image.url
return self.photo.get_display_url()
if self.image:
if self.image.startswith('http') or self.image.startswith('/'):
return self.image