smaller images
This commit is contained in:
parent
6ccd7b8e1a
commit
5f0c52aeae
|
@ -146,7 +146,7 @@ class Content(models.Model):
|
||||||
@property
|
@property
|
||||||
def image_url(self):
|
def image_url(self):
|
||||||
if self.photo:
|
if self.photo:
|
||||||
return self.photo.image.url
|
return self.photo.get_display_url()
|
||||||
if self.image:
|
if self.image:
|
||||||
if self.image.startswith('http') or self.image.startswith('/'):
|
if self.image.startswith('http') or self.image.startswith('/'):
|
||||||
return self.image
|
return self.image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user