I was updating to the latest SVN and encountered some odd behavior with a custom gallery image admin inline template. I've narrowed it down to some dynamic inlines development released in 12297. The problem is that I don't really know if it merits a feature request or if I'm missing something.
The issue boils down to the "add new" loop with "extra" set to 1 (only one image can be added per save), specifically the use of the "original" property in differentiating between existing and new gallery images. The goal is to be able to determine which are bound to the database from those that are adds. {% for inline_admin_form in inline_admin_formset %} {% if inline_admin_form.original %} {% else %} {% include "admin/edit_inline/gallery_image.html" %} {% endif %} {% endfor %} The above template admittedly has the problem where the underlying django can not create other formsets which are not "original" without it breaking, and this is indeed what seems to be happening. In a fresh gallery admin with no images saved -- #12296 1 gallery image add option - galleryimages-0-image only #12297 2 gallery image add options - galleryimages-0-image and galleryimages- __prefix__-image Under current SVN is there a way to excude the __prefix__ instance within the template? If not, would it be worth submitting a feature request to enable the ability to discern between the two kinds of non- original inlines? Thanks! Ben -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.