Update src/documents/models.py

Co-Authored-By: Pit <pitkley@googlemail.com>
This commit is contained in:
Wolf-Bastian Pöttner 2020-02-17 20:45:43 +01:00 committed by GitHub
parent d8fda64cd0
commit 534eb7de91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -413,7 +413,7 @@ def try_delete_empty_directories(directory):
return
# Cut off actual directory and go one level up
directory, tmp = os.path.split(directory)
directory, _ = os.path.split(directory)
@receiver(models.signals.m2m_changed, sender=Document.tags.through)