diff options
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index bcde57ea3..7d7b6c872 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1761,7 +1761,7 @@ class DocumentItem(object): images.append(self.main_image.public_representation()) images += [ image.public_representation() - for image in self.images_without_main_image().all() + for image in self.images_without_main_image.all() ] return {"images": images} @@ -5073,7 +5073,7 @@ class Document(BaseHistorizedItem, OwnPerms, ImageModel, ValueGetter, MainItem): return { "title": self.title, "reference": self.reference, - "type": self.source_type, + "type": self.source_type and str(self.source_type), "authors": [a.public_representation() for a in self.authors.all()], "image": image, "thumbnail": thumbnail, |