admin inline formset with "extra" ignores last line when saving
|Reported by:||qnix||Owned by:||nobody|
|Severity:||Keywords:||admin, save, inline|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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?