Opened 18 years ago
Closed 18 years ago
#2925 closed defect (fixed)
[patch] Missing exception import in an admin view
Reported by: | Chris Beaven | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
An import error can occur in django/contrib/admin/views/auth.py
when it tries to raise PermissionDenied
in user_add_stage
).
Add this:
from django.core.exceptions import PermissionDenied
Note:
See TracTickets
for help on using tickets.
(In [3925]) Fixed #2925 -- Added missing exception import to admin.views.auth. Thanks, SmileyChris