Fix: always use source_filename attribute when accessing a file

This commit is contained in:
Wolf-Bastian Poettner 2020-04-10 12:53:34 +00:00
parent 6318e920d5
commit 4fc1e67e9b

@ -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: