mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 23:30:59 +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
|