diff --git a/tjdests/apps/authentication/urls.py b/tjdests/apps/authentication/urls.py index 9824fca..3b30990 100644 --- a/tjdests/apps/authentication/urls.py +++ b/tjdests/apps/authentication/urls.py @@ -7,7 +7,11 @@ app_name = "authentication" urlpatterns = [ path("", views.IndexView.as_view(), name="index"), - path("login", auth_views.LoginView.as_view(template_name="authentication/login.html"), name="login"), + path( + "login", + auth_views.LoginView.as_view(template_name="authentication/login.html"), + name="login", + ), path("logout", auth_views.LogoutView.as_view(), name="logout"), path("tos", views.accept_tos_view, name="tos"), ] diff --git a/tjdests/apps/authentication/views.py b/tjdests/apps/authentication/views.py index 08307c4..a8d8bfa 100644 --- a/tjdests/apps/authentication/views.py +++ b/tjdests/apps/authentication/views.py @@ -1,7 +1,6 @@ from django.contrib import messages from django.contrib.auth import login, logout from django.contrib.auth.decorators import login_required -from django.contrib.auth.views import LoginView from django.http import HttpRequest, HttpResponse from django.shortcuts import redirect, render from django.urls import reverse