I've created a custom image field for Django that automatically creates thumbnails and does some other stuff.
from django.db.models.fields.files import ImageFieldFile
class ImageWithThumbsFieldFile(ImageFieldFile):
def __init__(self, *args, **kwargs):
...
Now I would like to automatically connect a post_delete signal whenever such a field is defined in a model. I know how to connect a post_delete signal manually when the model is defined. But i there a way to do that automatically whenever the custom field is used?