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.
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.
This adds a
cleanup_pre_delete
andcleanup_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.