mirror of
https://github.com/jointakahe/takahe.git
synced 2024-12-03 12:26:26 +00:00
16 lines
345 B
Python
16 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
|