From 45180c1f4f2e75b38b57d581f454b170ca68cfe1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 27 Jan 2019 13:21:12 +0100 Subject: Tools to manage media files. * clean unused * find missing * rename and simplify --- ishtar_common/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 425ee2a8d..5db454b14 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -4127,9 +4127,10 @@ class Document(BaseHistorizedItem, OwnPerms, ImageModel): self._get_thumb_name(reference_path)) self.image.name = reference_path[ len(settings.MEDIA_ROOT):] + self._no_move = True self.save(no_path_change=True) except OSError: - # file probably not on harddrive - will be cleaned + # file probably not on HDD - will be cleaned pass continue # create a link -- cgit v1.2.3