Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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',
            }),
        }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #text #area #limit #characters
ADD COMMENT
Topic
Name
4+4 =