Browse files

Fixed #7292 -- Removed reference to form_for_model in the form_previe…

…w docs. Thanks to programmerq for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent e4fc327 commit b3653db4f0dd7eb3d786853e940178bc6d04114f @freakboy3742 freakboy3742 committed Jun 17, 2008
Showing with 2 additions and 4 deletions.
  1. +2 −4 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

0 comments on commit b3653db

Please sign in to comment.