Opened 5 years ago

Closed 5 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 5 years ago by russellm

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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

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