returned redirect
1 parent f5eb781 commit 127629de618a860a17e834790c826405bb09db51
@benste benste authored on 3 Aug 2011
Showing 1 changed file
View
8
views.py
user = authenticate(username=form.cleaned_data["user"],
password=form.cleaned_data["password"])
if user is not None:
if user.is_active:
redirect(request.GET["next"])
if "next" in request.GET.keys():
return redirect(request.GET["next"])
else:
return redirect("list_index")
else:
error= _("Your account has been disabled!")
else:
error = _("Your username and password were incorrect.")