mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
separete RequestContext from context data we pass in
This commit is contained in:
parent
8f7ac3fdbe
commit
e91600dbe2
1 changed files with 4 additions and 3 deletions
|
|
@ -122,11 +122,12 @@ def watch_login(func):
|
|||
|
||||
def lockout_response(request):
|
||||
if LOCKOUT_TEMPLATE:
|
||||
context = RequestContext(request, {
|
||||
context = {
|
||||
'cooloff_time': COOLOFF_TIME,
|
||||
'failure_limit': FAILURE_LIMIT,
|
||||
})
|
||||
return render_to_response(LOCKOUT_TEMPLATE, context)
|
||||
}
|
||||
return render_to_response(LOCKOUT_TEMPLATE, context,
|
||||
context_instance = RequestContext(request))
|
||||
|
||||
if LOCKOUT_URL:
|
||||
return HttpResponseRedirect(LOCKOUT_URL)
|
||||
|
|
|
|||
Loading…
Reference in a new issue