models.py=>
from django.db import models from django.forms import ModelForm from datetime import date import datetime from django import forms from django.forms
I think this section in the documentation should be useful to solve the problem.
from django.forms import ModelForm, Textarea class PostModelForm(ModelForm): class Meta: model = Post widgets = { 'content': Textarea(attrs={'cols': 80, 'rows': 20}), }