mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
Removed unnecessary check
This commit is contained in:
parent
3027053256
commit
060bdc947a
1 changed files with 22 additions and 24 deletions
|
|
@ -420,8 +420,6 @@ def update_filename(sender, instance, **kwargs):
|
|||
if instance.filename == new_filename:
|
||||
return
|
||||
|
||||
# Check if filename needs changing
|
||||
if new_filename != instance.filename:
|
||||
# Determine the full "target" path
|
||||
path_new = instance.filename_to_path(new_filename)
|
||||
dir_new = instance.filename_to_path(os.path.dirname(new_filename))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue