mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 13:58:12 +00:00
Added comment to update_document
This commit is contained in:
1 parent
ec3607cf1f
commit
3027053256
1 file changed
+1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user