1class BlogForm(forms.ModelForm):
2 class Meta:
3 model = Blog
4 fields = ['blogPost']
5 widgets = {
6 'blogPost' : forms.Textarea(attrs={
7 'rows': '5',
8 'cols': '90',
9 'maxlength': '200',
10 }),
11 }