#14034: admin inline formset with "extra" ignores last line when saving
---------------------------------+------------------------------------------
Reporter: qnix | Owner: nobody
Status: new | Milestone: 1.3
Component: Contrib apps | Version: 1.2
Keywords: admin, save, inline | Stage: Unreviewed
Has_patch: 0 |
---------------------------------+------------------------------------------
I defined my inline admin model such this:
{{{
class ServiceOptionInline(admin.TabularInline):
model = ServiceOption
extra = 2
}}}
In the web page, I always see "extra + 1" empty inline lines to add new
records. I think it's normal since there is no max_num defined. However
the last line is never saved. So, there are only "extra" lines saved
during the save operation. Currently, I've made a simple hack in JS that
hide/delete the last row of the inline form.
Could you confirm that this is a bug and not only happens here?
--
Ticket URL: <http://code.djangoproject.com/ticket/14034>
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.