jonasundderwolf / django-image-cropping

Django helper application to easily and non-destructively crop arbitrarily large images in admin and frontend.
Other
553 stars 130 forks source link

I am getting 2 images with the crop window instead of just 1 #110

Open sureshvv opened 7 years ago

sureshvv commented 7 years ago

I am using crispy_forms. Could this be the reason?

I have an ImageCropField and 3 ImageRatioFields in my ModelForm. I expect to get 4 images on my form. But I get 7. An extra one for each of the ImageRatioFields that look identical to the each other. Any idea why?

coler-j commented 7 years ago

Did you figure out why? I am using Crispy forms as well, and this happens to me (but it does not happen in the admin). @sureshvv

coler-j commented 7 years ago

It seems that with crispy forms you do not need to include the {{form.media}} in the header, as crispy includes this info in the form content. I removed the {{form.media}} in my header and this issue went away.

MRigal commented 4 years ago

We should probably add this to our docs.

I would be very happy to accept a documentation PR, @coler-j @sureshvv