takahe/users/views/auth.py
2022-11-05 14:17:27 -06:00

15 lines
345 B
Python

from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth.views import LoginView, LogoutView
from core.forms import FormHelper
class Login(LoginView):
class form_class(AuthenticationForm):
helper = FormHelper(submit_text="Login")
template_name = "auth/login.html"
class Logout(LogoutView):
pass