isolated NavBarMixin

This commit is contained in:
Arthur Gerbaud
2016-12-01 11:15:55 +01:00
parent 387fe36382
commit 6b659144c9
4 changed files with 61 additions and 53 deletions

View File

@@ -40,11 +40,9 @@ def login_view(request):
user = authenticate(username=username, password=password)
if user is not None:
login(request, user)
next = request.POST.get('next', None)
if not next:
next = _get_entry_point(user)
return HttpResponseRedirect(next)
else:
return HttpResponseRedirect('/')