Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#22647 closed Cleanup/optimization (fixed)

redirect_field_name keyword argument for user_passes_test missing in documentation

Reported by: Vidir Valberg Gudmundsson Owned by: Tim Graham
Component: Documentation Version: 1.7-beta-2
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using the user_passes_test decorator to hinder access for non superusers, I got annoyed that I couldn't remove the '?next=' part of the URL, until I read the source code and saw that there is a mismatch between the source code and documentation. There is in fact an optional redirect_field_name argument for the user_passes_test decorator, and setting that to None removes that part of the URL.

Change History (4)

comment:1 by Vidir Valberg Gudmundsson, 10 years ago

Owner: changed from nobody to Vidir Valberg Gudmundsson
Status: newassigned

comment:2 by Tim Graham, 10 years ago

Owner: changed from Vidir Valberg Gudmundsson to Tim Graham
Triage Stage: UnreviewedAccepted

Reviewing now.

comment:3 by Tim Graham <timograham@…>, 10 years ago

Resolution: fixed
Status: assignedclosed

In 268670a3a40aac87ed8c5570a97ed01aa0f2c0ab:

Fixed #22647 -- Documented redirect_field_name keyword argument for user_passes_test.

comment:4 by Tim Graham <timograham@…>, 10 years ago

In f3b082901774463319fbb6e918b0d846289620bf:

[1.6.x] Fixed #22647 -- Documented redirect_field_name keyword argument for user_passes_test.

Backport of 268670a3a4 from master

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