Как изменить размер UserCreationForm?
Я хочу изменить вес полей в UserCreationForm. Как это возможно?
class SignUpForm(UserCreationForm):
username = forms.CharField( widget=forms.TextInput(attrs={
"class": "input",
"type": "text",
"placeholder": "Username",
}) )
email = forms.CharField(widget=forms.TextInput(attrs={
"class": "input",
"type": "email",
"placeholder": "Email"
}))
password1 = forms.CharField(widget=forms.TextInput(attrs={
"class": "input",
"type": "password",
"placeholder": "Password"
}))
password2 = forms.CharField(widget=forms.TextInput(attrs={
"class": "input",
"type": "password",
"placeholder": "Password"
}))
class Meta:
model= User
fields = [
"username", "email", "password1", "password2"
]
Я хочу изменить размер полей: Имя пользователя, Email, Пароль 1 и Пароль 2
Точнее, я хочу, чтобы поля были длиннее. Буду благодарен за любую помощь.