Opened 9 years ago

Closed 9 years ago

#25511 closed New feature (duplicate)

Customize action for "add another" in inline forms

Reported by: Michael Vogel Owned by: nobody
Component: contrib.admin Version: 1.8
Severity: Normal Keywords: customization, options
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hello,

I would be nice to be able to have a simple way to customize the behaviour when one clicks on "add another <model name>" in the inline forms. At the moment one is limited to it creating a new form for a new object.
In my case it would be necessary to open a popup or call a backend process to create a new item and then reload the page.

Other uses could be logging, adding animations or whatever the user desires to add.

As far as I tell the critical parts are in https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/inlines.js#L37

Cheers

Change History (2)

comment:1 by Tim Graham, 9 years ago

Do the JavaScript events added in #15760 meet your use case?

comment:2 by Tim Graham, 9 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top