Opened 15 years ago

Closed 15 years ago

#11375 closed (wontfix)

Redirect to another url in admin add view

Reported by: Nick Sandford Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I've got a form on an AdminSite app_index view that submits to a ModelAdmin add_view. I have taken care of setting up the form in such a way that it submits to the add_view fine, but I'd like to be able to redirect back to the AdminSite's app_index rather than the ModelAdmin's changelist or anything else.

Attachments (1)

response-add-redirect.diff (513 bytes ) - added by Nick Sandford 15 years ago.

Download all attachments as: .zip

Change History (3)

by Nick Sandford, 15 years ago

Attachment: response-add-redirect.diff added

comment:1 by dc, 15 years ago

Maybe better add another argument to the response_add() because it already has post_url_continue.

comment:2 by Luke Plant, 15 years ago

Resolution: wontfix
Status: newclosed

The normal way to achieve this is by overriding ModelAdmin.response_add. Therefore closing WONTFIX.

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