Skip to content

Commit

Permalink
online fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guoshijiang committed Mar 25, 2024
1 parent 2cfadd1 commit e1bfd99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit e1bfd99

Please sign in to comment.