Fix bug in Django admin login redirect
- Legacy-Id: 7096
This commit is contained in:
parent
f685e45ca5
commit
b78109ff34
|
@ -314,7 +314,8 @@ class AdminSite(object):
|
|||
Displays the login form for the given HttpRequest.
|
||||
"""
|
||||
url = "/accounts/login/?next="+request.get_full_path()
|
||||
return http.HttpResponseRedirect(url)
|
||||
from django.http import HttpResponseRedirect
|
||||
return HttpResponseRedirect(url)
|
||||
|
||||
from django.contrib.auth.views import login
|
||||
context = {
|
||||
|
|
Loading…
Reference in a new issue