From e96f7223392b2a68511d9dd826002de425db8efe Mon Sep 17 00:00:00 2001 From: Ethan Nguyen Date: Fri, 23 Apr 2021 23:49:46 -0400 Subject: [PATCH] style(authentication): reformat 0b4f03af36f2edfcb757a26d1c31ff9092f9f5de --- tjdests/apps/authentication/urls.py | 6 +++++- tjdests/apps/authentication/views.py | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) 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