mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-07 00:27:12 +00:00
Fix: always use source_filename attribute when accessing a file
This commit is contained in:
1 parent
6318e920d5
commit
4fc1e67e9b
1 file changed
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user