0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
This commit is contained in:
Karl Hobley 2015-06-01 09:51:08 +01:00
parent 7938099a21
commit 82c04f56f6

View File

@ -74,7 +74,7 @@ class Document(models.Model, TagSearchable):
# Receive the pre_delete signal and delete the file associated with the model instance.
@receiver(pre_delete, sender=Document)
def image_delete(sender, instance, **kwargs):
def document_delete(sender, instance, **kwargs):
# Pass false so FileField doesn't save the model.
instance.file.delete(False)