TabularInline Image js bug when adding

14 views
Skip to first unread message

jean polo

unread,
May 2, 2012, 7:22:48 AM5/2/12
to django...@googlegroups.com
hello,
just upgrade to 1.4 and I have a weird problem in the admin (therefore the weird post title...):

I use TabularInline Image fields in my admin.

the problem is when I click on "Add an object Image", the new field get inserted *before* the latest one and therefore its id is wrong and the Images do not get saved.
I guess it's easier to understand with a screenshot: http://www.yvanvolochine.com/media/images/djangoBUG.gif

the weirdest thing is that the problem only happens online and not locally.
the only difference seems to be that in production, the *.min.js versions of the js files are used. I hacked around and replaced them with mine (non *.min) but the problem persists...

any hints on where to find where this weirdness come from are very welcome !

_j

josiano

unread,
May 2, 2012, 8:11:50 AM5/2/12
to django...@googlegroups.com
actually it looks like it's a missing CSS that was the culprit:

.empty-form { display-none }

this is gone from my online version and I dunno why...

anyway, fixed it now =)

j
Reply all
Reply to author
Forward
0 new messages