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 Markus Zapke-Gründemann, 12 years ago

Needs documentation: set
Owner: changed from nobody to Markus Zapke-Gründemann
Status: newassigned

comment:2 by Markus Zapke-Gründemann, 12 years ago

comment:3 by anonymous, 12 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.
Back to Top