diff options
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 |
commit | 45180c1f4f2e75b38b57d581f454b170ca68cfe1 (patch) | |
tree | 62b31735a99e8e60655e3bbe1bc0956294a4652c /ishtar_common/models.py | |
parent | ab651277d8f70c9930481b1b578a762c7eedd1b3 (diff) | |
download | Ishtar-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.py | 3 |
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 |