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 , 3 weeks ago
comment:2 by , 3 weeks ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 3 weeks ago
| Has patch: | set |
|---|
comment:4 by , 3 weeks ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:6 by , 44 hours ago
| Triage Stage: | Accepted → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
Hi, I'd like to work on this ticket and submit a patch.
My plan is to add
preserve_requestas a class-level attribute onRedirectViewand also expose it as an argument toas_view(), mirroring the existing behaviour in theredirect()shortcut.