diff options
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 28ffcf7b2..eff43a119 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -5346,6 +5346,12 @@ class Document(BaseHistorizedItem, QRCodeItem, OwnPerms, ImageModel, } @property + def thumbnail_path(self): + if not self.thumbnail: + return "" + return self.thumbnail.path + + @property def image_path(self): if not self.image: return "" |