dont die if story doesn't have an image
This commit is contained in:
parent
bf9bf130c6
commit
099c8671c4
|
@ -80,7 +80,7 @@ class BestPracticeStory(models.Model):
|
|||
def get_dict(self):
|
||||
return {
|
||||
'text': self.text,
|
||||
'image': self.image.url,
|
||||
'image': self.image.url if self.image != None else ''
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user