Opened 6 years ago

Closed 6 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 Changed 6 years ago by Tim Graham

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

comment:2 Changed 6 years ago by Tim Graham

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