Django

Code

Ticket #3433 (closed: duplicate)

Opened 1 year ago

Last modified 1 year ago

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

Reported by: michelts@gmail.com Assigned to: adrian
Milestone: Component: Admin interface
Version: SVN Keywords: ForeignKey edit_inline javascript admin
Cc: Triage Stage: Design decision needed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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.

Attachments

Change History

02/05/07 09:45:59 changed by Michael Radziej <mir@noris.de>

  • needs_better_patch changed.
  • stage changed from Unreviewed to Design decision needed.
  • needs_tests changed.
  • needs_docs changed.

02/15/07 14:44:06 changed by Thomas Steinacher <tom@eggdrop.ch>

02/17/07 23:11:52 changed by Gary Wilson <gary.wilson@gmail.com>

  • status changed from new to closed.
  • resolution set to duplicate.

This a dup of #13.

02/17/07 23:14:01 changed by Gary Wilson <gary.wilson@gmail.com>

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

02/22/07 16:11:32 changed by Michael Radziej <mir@noris.de>

Gary: thanks!


Add/Change #3433 (Use javascript to add more items when using edit_in_line on a ForeignKey)




Change Properties
Action