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

ImagePicker widget does not work in dynamically added inlines #743

Closed
o-zander opened this issue Feb 22, 2016 · 3 comments
Closed

ImagePicker widget does not work in dynamically added inlines #743

o-zander opened this issue Feb 22, 2016 · 3 comments
Assignees
Milestone

Comments

@o-zander
Copy link
Contributor

I have a parent model and an image model with a foreign key to the parent and an image field. The parent's admin includes the image model as an inline. I got nearly crazy because I can't use the image picker. If I clicked add image (to get a new inline) and tried to drop an image on the field but the image was shown in the browser instead of being uploaded. So I tried to add an image over the folder structure. But after choosing one, it didn't get inserted in the field. So I thought it has something to do with mit setup. After hours of trying it out with different admin configurations and test models I raised the extra attribute of my image inline admin from zero to one. And surprisingly I could drop images! But if add an inline dynamically with the add button the functionality is gone.

Long story short: a file/image field in an inline can't be used on dynamically added inlines.

@stefanfoulis
Copy link
Contributor

@o-zander thanks for reporting. We'll try to get a fix out for this regression asap.

@stefanfoulis stefanfoulis added this to the 1.2.0 milestone Feb 23, 2016
@o-zander
Copy link
Contributor Author

Great :) I would help but frontend related issues are not my strength ;)

@stefanfoulis
Copy link
Contributor

probably fixed in #670

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

No branches or pull requests

3 participants