Opened 3 years ago

Closed 3 years ago

#19230 closed Uncategorized (fixed)

No information how to raise a 403 exception in documentation

Reported by: keimlink Owned by: keimlink
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 3 years ago by keimlink

  • Needs documentation set
  • Needs tests unset
  • Owner changed from nobody to keimlink
  • Patch needs improvement unset
  • Status changed from new to assigned

comment:2 Changed 3 years ago by keimlink

comment:3 Changed 3 years ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.
Back to Top