Opened 16 years ago

Closed 16 years ago

Last modified 16 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 Holovaty
Component: contrib.admin Version: dev
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: no UI/UX: no


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 16 years ago by Michael Radziej <mir@…>

Triage Stage: UnreviewedDesign decision needed

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

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

Resolution: duplicate
Status: newclosed

This a dup of #13.

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

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

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

Gary: thanks!

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