mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-28 10:34:53 +00:00
Fix typo
This commit is contained in:
parent
7938099a21
commit
82c04f56f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue