#1494 closed defect (fixed)
global name 'HttpResponseRedirect' is not defined
Reported by: | Alef | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In magic-removal branch in file:
django/contrib/auth/decorators.py
HttpResponseRedirect is used but never imported. The solution is simply:
from django.http import HttpResponseRedirect
Note:
See TracTickets
for help on using tickets.
(In [2512]) magic-removal: Fixed #1494 -- Added missing import to django.contirb.auth.decorators