mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
Fix typo
This commit is contained in:
parent
7938099a21
commit
82c04f56f6
@ -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 New Issue
Block a user