mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Added comment to update_document
This commit is contained in:
parent
ec3607cf1f
commit
3027053256
@ -409,6 +409,7 @@ def delete_empty_directory(directory):
|
||||
@receiver(models.signals.m2m_changed, sender=Document.tags.through)
|
||||
@receiver(models.signals.post_save, sender=Document)
|
||||
def update_filename(sender, instance, **kwargs):
|
||||
# Skip if document has not been saved yet
|
||||
if instance.filename is None:
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user