Opened 12 years ago

Closed 12 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: UI/UX:


An import error can occur in django/contrib/admin/views/ when it tries to raise PermissionDenied in user_add_stage).

Add this:

from django.core.exceptions import PermissionDenied

Change History (1)

comment:1 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [3925]) Fixed #2925 -- Added missing exception import to admin.views.auth. Thanks, SmileyChris

Note: See TracTickets for help on using tickets.
Back to Top