Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3433 closed (duplicate)

Use javascript to add more items when using edit_in_line on a ForeignKey

Reported by: michelts@… Owned by: adrian
Component: contrib.admin Version: master
Severity: Keywords: ForeignKey edit_inline javascript admin
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


When you use edit_in_line on a ForeignKey, you should specify how many options will you limit on creating and modification of the object (with the keyword num_in_admin and so). If we think on the polls example from the doc, I have a Poll and it may have many Choices, I am limited to "num_in_admin" choices on creating, and if I want more than "num_in_admin" choices, I must create and then modify.

My feature request is, instead of being limited to "num_in_admin", django may have a javascript function to create another inline editable item. Google mail uses this idea to add attachments to emails, you have a link "add another" that creates a new input to load another file.

Change History (5)

comment:1 Changed 10 years ago by Michael Radziej <mir@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Design decision needed

comment:2 Changed 10 years ago by Thomas Steinacher <tom@…>

comment:3 Changed 10 years ago by Gary Wilson <gary.wilson@…>

  • Resolution set to duplicate
  • Status changed from new to closed

This a dup of #13.

comment:4 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Thomas, would you be interested in posting your code to #13?

comment:5 Changed 10 years ago by Michael Radziej <mir@…>

Gary: thanks!

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