summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-27 13:21:12 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-01-27 13:21:12 +0100
commit45180c1f4f2e75b38b57d581f454b170ca68cfe1 (patch)
tree62b31735a99e8e60655e3bbe1bc0956294a4652c /ishtar_common/models.py
parentab651277d8f70c9930481b1b578a762c7eedd1b3 (diff)
downloadIshtar-45180c1f4f2e75b38b57d581f454b170ca68cfe1.tar.bz2
Ishtar-45180c1f4f2e75b38b57d581f454b170ca68cfe1.zip
Tools to manage media files.
* clean unused * find missing * rename and simplify
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py3
1 files changed, 2 insertions, 1 deletions
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