un1t / django-cleanup

Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion.
MIT License
1.11k stars 79 forks source link

Send delete signals #12

Closed jpotterm closed 9 years ago

jpotterm commented 9 years ago

This adds a cleanup_pre_delete and cleanup_post_delete signal that will allow people to hook into django-cleanup's deletion of files. The specific motivation for this is so that there's a way to notify sorl-thumbnail to remove its thumbnail cache entry when a file is deleted. This pull request supersedes https://github.com/un1t/django-cleanup/pull/11 by solving the problem in a more elegant way.

un1t commented 9 years ago

Thank for contribution!

github-actions[bot] commented 2 years ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.