Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class UserLoginForm(forms.ModelForm):
- class Meta:
- model = get_user_model()
- fields = ('username', 'password')
- widgets = {
- 'username': TextInput(attrs={'id': 'user_username', 'placeholder': 'Ваш ник'}),
- # 'email_user': EmailInput(attrs={'id': 'user_email', 'placeholder': 'Ваша почта'}),
- 'password': PasswordInput(attrs={'id': 'user_pass', 'placeholder': 'Ваш пароль'}),
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement