Opened 16 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)
Change History (3)
by , 16 years ago
Attachment: | response-add-redirect.diff added |
---|
comment:1 by , 16 years ago
comment:2 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The normal way to achieve this is by overriding ModelAdmin.response_add
. Therefore closing WONTFIX.
Note:
See TracTickets
for help on using tickets.
Maybe better add another argument to the response_add() because it already has post_url_continue.