style(authentication): reformat 0b4f03af36

This commit is contained in:
Ethan Nguyen 2021-04-23 23:49:46 -04:00
parent 6aa704164c
commit e96f722339
No known key found for this signature in database
GPG Key ID: B4CA5339AF911920
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,11 @@ app_name = "authentication"
urlpatterns = [ urlpatterns = [
path("", views.IndexView.as_view(), name="index"), 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("logout", auth_views.LogoutView.as_view(), name="logout"),
path("tos", views.accept_tos_view, name="tos"), path("tos", views.accept_tos_view, name="tos"),
] ]

View File

@ -1,7 +1,6 @@
from django.contrib import messages from django.contrib import messages
from django.contrib.auth import login, logout from django.contrib.auth import login, logout
from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import LoginView
from django.http import HttpRequest, HttpResponse from django.http import HttpRequest, HttpResponse
from django.shortcuts import redirect, render from django.shortcuts import redirect, render
from django.urls import reverse from django.urls import reverse