change get image in carusel
This commit is contained in:
parent
660eb347c5
commit
0d7187e330
|
|
@ -352,6 +352,8 @@ class Carousel(models.Model):
|
|||
|
||||
@property
|
||||
def image_url(self):
|
||||
if self.attachment_suffix_url:
|
||||
return f'https://s3.eu-central-1.amazonaws.com/gm-test.com/media/{self.attachment_suffix_url}'
|
||||
if hasattr(self.content_object, 'image_url'):
|
||||
return self.content_object.image_url
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user