Opened 8 years ago

Closed 8 years ago

#13424 closed (invalid)

option to remove the "add another" button on admin.TabularInline

Reported by: nickname123 Owned by: nobody
Component: contrib.admin Version: 1.2-beta
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


There should either be a meta setting in or logic to turn off the "add another" button that shows up when you use an Inline admin table.

Useful case:
I have a model that is automatically populated to contain altered copies of data in a parent table. The altered copies cannot be modified or added from the admin table because all of the fields have editible=False, but the table shows the add another option anyways. All of the fields are listed using readonly in the options for the inline table. So when you click the add another you just get readonly fields that say (None). It is confusing and doesn't actually work since you can't really add one from the admin page.

Change History (1)

comment:1 Changed 8 years ago by Russell Keith-Magee

Resolution: invalid
Status: newclosed

This option already exists: set max_num=0 on your ModelAdmin.

Note: See TracTickets for help on using tickets.
Back to Top