mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
Fix: always use source_filename attribute when accessing a file
This commit is contained in:
parent
6318e920d5
commit
4fc1e67e9b
@ -436,7 +436,7 @@ def update_filename(sender, instance, **kwargs):
|
|||||||
instance.create_source_directory()
|
instance.create_source_directory()
|
||||||
|
|
||||||
# Determine the full "current" path
|
# Determine the full "current" path
|
||||||
path_current = instance.filename_to_path(instance.filename)
|
path_current = instance.filename_to_path(instance.source_filename)
|
||||||
|
|
||||||
# Move file
|
# Move file
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user