diff --git a/website/models.py b/website/models.py index 9ad8823..654cdc5 100644 --- a/website/models.py +++ b/website/models.py @@ -118,7 +118,7 @@ def as_dict(self): 'id': self.id, 'title': self.title, 'cat_name': self.cat.name, - 'image': str(settings.IMG_URL + self.image), + 'image': settings.IMG_URL + str(self.image), 'describe': self.describe, 'link_url': self.link_url, 'tags': self.tags, @@ -164,7 +164,7 @@ def as_dict(self): return { 'id': self.id, 'name': self.name, - 'image': str(settings.IMG_URL + self.image), + 'image': settings.IMG_URL + str(self.image), 'link': self.link_url, 'describe': str(self.describe), 'created_at': self.created_at.astimezone(tz).strftime("%Y-%m-%d %H:%M:%S")