django model textfield max length code example
Example: django text area limit characters
class BlogForm(forms.ModelForm):
class Meta:
model = Blog
fields = ['blogPost']
widgets = {
'blogPost' : forms.Textarea(attrs={
'rows': '5',
'cols': '90',
'maxlength': '200',
}),
}