mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Removed duplicate check if instance.filename
This commit is contained in:
parent
bcff75433c
commit
ec3607cf1f
1 changed files with 1 additions and 2 deletions
|
|
@ -416,8 +416,7 @@ def update_filename(sender, instance, **kwargs):
|
|||
new_filename = instance.generate_source_filename()
|
||||
|
||||
# If the filename is the same, then nothing needs to be done
|
||||
if instance.filename is None or \
|
||||
instance.filename == new_filename:
|
||||
if instance.filename == new_filename:
|
||||
return
|
||||
|
||||
# Check if filename needs changing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue