Added comment to update_document

This commit is contained in:
Wolf-Bastian Poettner 2020-02-01 14:12:58 +00:00
parent ec3607cf1f
commit 3027053256

View File

@ -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