Opened 17 years ago

Closed 17 years ago

Last modified 17 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

Description

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

Triage Stage: UnreviewedDesign decision needed

comment:3 by Gary Wilson <gary.wilson@…>, 17 years ago

Resolution: duplicate
Status: newclosed

This a dup of #13.

comment:4 by Gary Wilson <gary.wilson@…>, 17 years ago

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

comment:5 by Michael Radziej <mir@…>, 17 years ago

Gary: thanks!

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