diff --git a/pandora/document/models.py b/pandora/document/models.py index 26e97e71..69c9df17 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -302,7 +302,7 @@ def delete_document(sender, **kwargs): for f in glob('%s/*' % folder): if f != t.file.path: os.unlink(f) - t.file.delete() + t.file.delete(save=False) pre_delete.connect(delete_document, sender=Document) class ItemProperties(models.Model):