redirect_field_name keyword argument for user_passes_test missing in documentation
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)
Owner: |
changed from nobody to Vidir Valberg Gudmundsson
|
Status: |
new → assigned
|
Owner: |
changed from Vidir Valberg Gudmundsson to Tim Graham
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Pull request here: https://github.com/django/django/pull/2675