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
Alternative to jcollardo's solution (same result, different syntax):
from django import forms class PostModelForm(forms.ModelForm): content = forms.CharField(widget=forms.Textarea) class Meta: model = Post