django-imagekit icon indicating copy to clipboard operation
django-imagekit copied to clipboard

Support label argument in ProcessedImageField

Open alsoicode opened this issue 9 years ago • 1 comments

Using Django 1.7.4 and Python 3.4, this model and field definition:

class Profile(models.Model):
    image = ProcessedImageField('Profile Image',
        upload_to=get_profile_upload_to, blank=True, null=True,
        processors=[ResizeToFill(200, 200)],
        format='JPEG', options={'quality': 60})

Throws: TypeError: __init__() got multiple values for argument 'processors'

alsoicode avatar Feb 15 '15 03:02 alsoicode

Try to specify verbose_name attribute:

class Profile(models.Model):
    image = ProcessedImageField(verbose_name='Profile Image',
        upload_to=get_profile_upload_to, blank=True, null=True,
        processors=[ResizeToFill(200, 200)],
        format='JPEG', options={'quality': 60})

morenopc avatar Jul 23 '15 23:07 morenopc