Hello @kartik,
If you are using ModelForm, apart from the possibility of using __init__, there is a widgets dictionary in Meta for that matter:
class AuthorForm(ModelForm):
class Meta:
model = Author
fields = ('name', 'title', 'birth_date')
widgets = {
'name': Textarea(attrs={'cols': 80, 'rows': 20}),
}
Hope it helps!!
Thank you!!