diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-15 12:09:40 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-15 12:09:40 +0200 |
commit | 4c037b32b1a5ed122a6d468217903f0b6454181e (patch) | |
tree | f220b0d50db435435997c111d670bd45be5f6901 /ishtar_common | |
parent | d9065d82f746494ce8113b9f58c72a36b3401a9a (diff) | |
download | Ishtar-4c037b32b1a5ed122a6d468217903f0b6454181e.tar.bz2 Ishtar-4c037b32b1a5ed122a6d468217903f0b6454181e.zip |
Url for public find api
Diffstat (limited to 'ishtar_common')
-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, |