Django image cropping error : 'ImageField' object has no attribute 'image_field'
I am using Amazon S3 as File Storage. I tried to use django image chopping 1.7 to handle photo it works for showing image without django image chopping on website and I read official documentation
cover_photo = models.ImageField(upload_to='package_inner_photos', null=True, blank=True)
cover_photo_cropping = ImageRatioField('inner_photo',free_crop=True)
{% if package.cover_photo %}style="background-image: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), url('{{ package.cover_photo.url }}');"{% endif %}
it can show the photo but no cropping effect, of coz
however
{% load cropping %}
{% if package.cover_photo %},url('{% cropped_thumbnail package "cover_photo" %}');"{% endif %}
debug page show the error that 'ImageField' object has no attribute 'image_field'
Django generated thumbnail file on Amazon S3 actually
I double checked particular entries
p = Package.objects.get(slug="ozen-reserve-bolifushi")
print(p.inner_photo)
print(p.cover_photo.name)
print(p.cover_photo.url)
it return the file name correctly
I made Amazon S3 ACL almost public, I am not sure which part go wrong.
Can anyone help please?