Opened 4 years ago

Closed 4 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 Changed 4 years ago by Markus Zapke-Gründemann

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

comment:2 Changed 4 years ago by Markus Zapke-Gründemann

comment:3 Changed 4 years ago by anonymous

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