fix linting

This commit is contained in:
simon 2021-10-22 18:23:06 +07:00
parent 825ebd874e
commit 05b25d004e

View File

@ -161,7 +161,7 @@ class LoginView(View):
"""handle login post request""" """handle login post request"""
form = AuthenticationForm(data=request.POST) form = AuthenticationForm(data=request.POST)
if form.is_valid(): if form.is_valid():
next_url = request.POST.get('next') or "home" next_url = request.POST.get("next") or "home"
print(f"next url: {next_url}") print(f"next url: {next_url}")
user = form.get_user() user = form.get_user()
login(request, user) login(request, user)