diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2008-06-17 11:22:03 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2008-06-17 11:22:03 +0000 |
| commit | b3653db4f0dd7eb3d786853e940178bc6d04114f (patch) | |
| tree | a3e6841bfdd498161160fae5d76c996b2340b264 /docs | |
| parent | e4fc3278905238cfd18e6cf0737bd1d3f131f120 (diff) | |
Fixed #7292 -- Removed reference to form_for_model in the form_preview docs. Thanks to programmerq for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/form_preview.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/form_preview.txt b/docs/form_preview.txt index e6f9b05f25..e03de36187 100644 --- a/docs/form_preview.txt +++ b/docs/form_preview.txt @@ -69,12 +69,10 @@ How to use ``FormPreview`` ...and add the following line to the appropriate model in your URLconf:: - (r'^post/$', SomeModelFormPreview(forms.models.form_for_model(SomeModel))), - - Or, if you already have a Form class defined for the model:: - (r'^post/$', SomeModelFormPreview(SomeModelForm)), + where ``SomeModelForm`` is a Form or ModelForm class for the model. + 4. Run the Django server and visit ``/post/`` in your browser. .. _template loader docs: ../templates_python/#loader-types |
