Changeset 7675
- Timestamp:
- 06/17/08 06:22:03 (3 months ago)
- Files:
-
- django/trunk/docs/form_preview.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/form_preview.txt
r7294 r7675 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))),72 (r'^post/$', SomeModelFormPreview(SomeModelForm)), 73 73 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. 77 75 78 76 4. Run the Django server and visit ``/post/`` in your browser.
