mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 00:05:21 +01:00
Fix: always use source_filename attribute when accessing a file
This commit is contained in:
parent
6318e920d5
commit
4fc1e67e9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue