diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index feebbeb239b..3492f4ed76e 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -184,6 +184,8 @@ With these models, the ``ModelForm`` subclasses above would be roughly equivalent to this (the only difference being the ``save()`` method, which we'll discuss in a moment.):: + from django import forms + class AuthorForm(forms.Form): name = forms.CharField(max_length=100) title = forms.CharField(max_length=3,