We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245554a commit d3edecdCopy full SHA for d3edecd
task_manager/users/forms.py
@@ -2,7 +2,6 @@
2
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
3
from django.contrib.auth.models import User
4
from django.utils.translation import gettext_lazy as _
5
-from django.core.exceptions import ValidationError
6
7
8
class UserRegisterForm(UserCreationForm):
task_manager/views.py
@@ -26,9 +26,8 @@ class UserListView(ListView):
26
model = User
27
template_name = 'users/user_list.html'
28
context_object_name = 'users'
29
-r
30
-#
31
-# # Вход
+
32
class UserLoginView(LoginView):
33
template_name = 'users/login.html'
34
authentication_form = CustomAuthenticationForm
0 commit comments