Advertisement
Guest User

Untitled

a guest
May 25th, 2021
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. class UserLoginForm(forms.ModelForm):
  2.     class Meta:
  3.         model = get_user_model()
  4.         fields = ('username', 'password')
  5.         widgets = {
  6.             'username': TextInput(attrs={'id': 'user_username',  'placeholder': 'Ваш ник'}),
  7.             # 'email_user': EmailInput(attrs={'id': 'user_email', 'placeholder': 'Ваша почта'}),
  8.             'password': PasswordInput(attrs={'id': 'user_pass', 'placeholder': 'Ваш пароль'}),
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement