Skip to content

Commit

Permalink
[1.3.X] Fixed #16513 - Add forms import to example; thanks teraom.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
timgraham committed Aug 6, 2011
1 parent 4217f35 commit 199f10f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/topics/forms/modelforms.txt
Expand Up @@ -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,
Expand Down

0 comments on commit 199f10f

Please sign in to comment.