Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sureshvv opened this issue Nov 26, 2016 · 3 comments
Open

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

sureshvv opened this issue Nov 26, 2016 · 3 comments

Comments

@sureshvv
Copy link

sureshvv commented Nov 26, 2016

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
Copy link

coler-j commented Jun 11, 2017

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
Copy link

coler-j commented Jun 11, 2017

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
Copy link
Contributor

MRigal commented May 7, 2020

We should probably add this to our docs.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants