Skip to content

Commit d3edecd

Browse files
committed
change views.py
1 parent 245554a commit d3edecd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

task_manager/users/forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
33
from django.contrib.auth.models import User
44
from django.utils.translation import gettext_lazy as _
5-
from django.core.exceptions import ValidationError
65

76

87
class UserRegisterForm(UserCreationForm):

task_manager/views.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ class UserListView(ListView):
2626
model = User
2727
template_name = 'users/user_list.html'
2828
context_object_name = 'users'
29-
r
30-
#
31-
# # Вход
29+
30+
3231
class UserLoginView(LoginView):
3332
template_name = 'users/login.html'
3433
authentication_form = CustomAuthenticationForm

0 commit comments

Comments
 (0)