diff options
| author | Timo Graham <timograham@gmail.com> | 2011-08-06 19:02:20 +0000 |
|---|---|---|
| committer | Timo Graham <timograham@gmail.com> | 2011-08-06 19:02:20 +0000 |
| commit | 0350d65fa493230c8be7bfe8a79bc5ac1a6c7aba (patch) | |
| tree | 48969dd2fafd5a4e989324921721ddc875dd81c2 /docs | |
| parent | bbe63f07c4a54f705636d3c34c6c05a5d76b085d (diff) | |
Fixed #16513 - Add forms import to example; thanks teraom.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index feebbeb239..3492f4ed76 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, |
