Opened 9 years ago

Closed 9 years ago

#2925 closed defect (fixed)

[patch] Missing exception import in an admin view

Reported by: SmileyChris Owned by: adrian
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:

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

Change History (1)

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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