#22647 closed Cleanup/optimization (fixed)
redirect_field_name keyword argument for user_passes_test missing in documentation
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 , 11 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 11 years ago
Owner: | changed from | to
---|---|
Triage Stage: | Unreviewed → Accepted |
Reviewing now.
comment:3 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Pull request here: https://github.com/django/django/pull/2675