Opened 12 years ago
Closed 12 years ago
#19230 closed Uncategorized (fixed)
No information how to raise a 403 exception in documentation
Reported by: | Markus Zapke-Gründemann | Owned by: | Markus Zapke-Gründemann |
---|---|---|---|
Component: | Documentation | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | yes |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
#9847 added a handler403
function. But the documentation about customizing error views has no information how to raise a 403 exception to trigger the handler.
Solution: One needs to raise django.core.exceptions.PermissionDenied
to trigger handler403
.
Change History (3)
comment:1 by , 12 years ago
Needs documentation: | set |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Created pull request https://github.com/django/django/pull/489