Code

Opened 7 years ago

Closed 7 years ago

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

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 (0)

Change History (5)

comment:1 Changed 7 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 7 years ago by Thomas Steinacher <tom@…>

comment:3 Changed 7 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 7 years ago by Gary Wilson <gary.wilson@…>

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

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

Gary: thanks!

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.