1>>> from django.forms import ModelForm
2>>> from myapp.models import Article
3
4# Create the form class.
5>>> class ArticleForm(ModelForm):
6... class Meta:
7... model = Article
8... fields = ['pub_date', 'headline', 'content', 'reporter']
9