From 4fc1e67e9bdb565b702783446d3922dfb9974b7c Mon Sep 17 00:00:00 2001 From: Wolf-Bastian Poettner Date: Fri, 10 Apr 2020 12:53:34 +0000 Subject: [PATCH] Fix: always use source_filename attribute when accessing a file --- src/documents/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/models.py b/src/documents/models.py index 9e57b7e7f..b81b4d42d 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -436,7 +436,7 @@ def update_filename(sender, instance, **kwargs): instance.create_source_directory() # Determine the full "current" path - path_current = instance.filename_to_path(instance.filename) + path_current = instance.filename_to_path(instance.source_filename) # Move file try: