django-imagekit
django-imagekit copied to clipboard
Support label argument in ProcessedImageField
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'
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})