mirror of
https://github.com/tubearchivist/tubearchivist-frontend.git
synced 2024-11-22 11:50:14 +00:00
fix linting
This commit is contained in:
parent
825ebd874e
commit
05b25d004e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user