Ticket #7292: modelform.patch
| File modelform.patch, 1.0 kB (added by programmerq, 6 months ago) |
|---|
-
a/docs/form_preview.txt
old new 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 class or ModelForm class defined for 75 the model. 76 78 77 4. Run the Django server and visit ``/post/`` in your browser. 79 78 80 79 .. _template loader docs: ../templates_python/#loader-types
