Django

Code

Changeset 7675

Show
Ignore:
Timestamp:
06/17/08 06:22:03 (3 months ago)
Author:
russellm
Message:

Fixed #7292 -- Removed reference to form_for_model in the form_preview docs. Thanks to programmerq for the report.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/form_preview.txt

    r7294 r7675  
    7070       ...and add the following line to the appropriate model in your URLconf:: 
    7171 
    72            (r'^post/$', SomeModelFormPreview(forms.models.form_for_model(SomeModel))), 
     72           (r'^post/$', SomeModelFormPreview(SomeModelForm)), 
    7373 
    74        Or, if you already have a Form class defined for the model:: 
    75  
    76            (r'^post/$', SomeModelFormPreview(SomeModelForm)), 
     74       where ``SomeModelForm`` is a Form or ModelForm class for the model. 
    7775 
    7876    4. Run the Django server and visit ``/post/`` in your browser.