From 199f10f9c09c5e5073c2e3a3a03f4a66d5c36855 Mon Sep 17 00:00:00 2001 From: Timo Graham Date: Sat, 6 Aug 2011 19:02:56 +0000 Subject: [PATCH] [1.3.X] Fixed #16513 - Add forms import to example; thanks teraom. Backport of r16586 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16587 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/topics/forms/modelforms.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 99164ecdae..07bc5e3001 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -182,6 +182,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,