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 40ed29d45b
commit 64b598a192

View File

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