#15569: wrong index assigned when creating a new inline ------------------------------------------------+----------------------- Reporter: sbaechler | Owner: nobody Status: new | Milestone: 1.3 Component: django.contrib.admin | Version: 1.2 Resolution: | Keywords: blocker Triage Stage: Ready for checkin | Has patch: 1 Needs documentation: 0 | Needs tests: 1 Patch needs improvement: 1 | ------------------------------------------------+-----------------------
Comment (by Arthur de Jong <arthur@…>): Sorry to not provide clearer instructions. It took me a couple of hours to find this myself and I don't particularly like debugging Javascript ;) In my case we were using a custom widget that also generates {{{<div id="{{ id }}_related">}}}. I don't know why some things are updated using updateElementIndex() and some are updated by simple search and replace so I implemented the change that should have minimal consequences. Attached is a patch that cleans things up more also works for me (also works in the case described in 14303). The only remaining use of nextIndex is for some code I can't be bothered to check at this time (sorry). -- Ticket URL: <http://code.djangoproject.com/ticket/15569#comment:11> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.