summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2011-08-06 19:02:56 +0000
committerTimo Graham <timograham@gmail.com>2011-08-06 19:02:56 +0000
commit199f10f9c09c5e5073c2e3a3a03f4a66d5c36855 (patch)
treea1161311875efd7f77fbccb483c10317590e9bbf /docs
parent4217f358c0b2765ec1824d994c5926ad7ad26a10 (diff)
[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
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/modelforms.txt2
1 files changed, 2 insertions, 0 deletions
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,