In some older group post I found a nice django-based solution: Using a
customized ImageField instance:

class MyImageField(ImageField):

    def __init__(self, *args, **kwargs):
        super(MyImageField, self).__init__(*args, **kwargs)

    def clean(self, *args, **kwargs):
        data = super(MyImageField, self).clean(*args, **kwargs)
        data.name = slugify_name(data.name)
        return data

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to