Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…w docs. Thanks to programmerq for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7675 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b3653db4f0dd7eb3d786853e940178bc6d04114f 1 parent e4fc327
Russell Keith-Magee authored June 17, 2008

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  docs/form_preview.txt
6  docs/form_preview.txt
@@ -69,12 +69,10 @@ How to use ``FormPreview``
69 69
 
70 70
        ...and add the following line to the appropriate model in your URLconf::
71 71
 
72  
-           (r'^post/$', SomeModelFormPreview(forms.models.form_for_model(SomeModel))),
73  
-
74  
-       Or, if you already have a Form class defined for the model::
75  
-
76 72
            (r'^post/$', SomeModelFormPreview(SomeModelForm)),
77 73
 
  74
+       where ``SomeModelForm`` is a Form or ModelForm class for the model.
  75
+
78 76
     4. Run the Django server and visit ``/post/`` in your browser.
79 77
 
80 78
 .. _template loader docs: ../templates_python/#loader-types

0 notes on commit b3653db

Please sign in to comment.
Something went wrong with that request. Please try again.