Opened 3 weeks ago

Closed 25 hours ago

#37062 closed New feature (fixed)

Add `preserve_request` support to `RedirectView`

Reported by: Jake Howard Owned by: Vaibhav Pant
Component: Generic views Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The redirect shortcut supports preserve_request to maintain the method and body of the original request during redirect.

The same functionality should exist on RedirectView to enable the same behaviour. Both as a class-level attribute and argument to as_view.

Change History (7)

comment:1 by Vaibhav Pant, 3 weeks ago

Hi, I'd like to work on this ticket and submit a patch.

My plan is to add preserve_request as a class-level attribute on RedirectView and also expose it as an argument to as_view(), mirroring the existing behaviour in the redirect() shortcut.

comment:2 by Jacob Walls, 3 weeks ago

Triage Stage: UnreviewedAccepted

comment:3 by Vaibhav Pant, 3 weeks ago

Has patch: set

comment:4 by Vaibhav Pant, 3 weeks ago

Owner: set to Vaibhav Pant
Status: newassigned

comment:6 by Sarah Boyce, 44 hours ago

Triage Stage: AcceptedReady for checkin

comment:7 by Sarah Boyce <42296566+sarahboyce@…>, 25 hours ago

Resolution: fixed
Status: assignedclosed

In da6567d:

Fixed #37062 -- Added preserve_request support to RedirectView.

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