Fixed #8721: Clarification in docs for form previews
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a40a32e52a
commit
5e26fceb83
|
@ -75,7 +75,7 @@ How to use ``FormPreview``
|
||||||
:class:`~django.contrib.formtools.FormPreview` subclass::
|
:class:`~django.contrib.formtools.FormPreview` subclass::
|
||||||
|
|
||||||
from myapp.preview import SomeModelFormPreview
|
from myapp.preview import SomeModelFormPreview
|
||||||
from myapp.models import SomeModel
|
from myapp.forms import SomeModelForm
|
||||||
from django import forms
|
from django import forms
|
||||||
|
|
||||||
...and add the following line to the appropriate model in your URLconf::
|
...and add the following line to the appropriate model in your URLconf::
|
||||||
|
@ -102,7 +102,7 @@ anywhere in your codebase.
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
By default, the form is rendered via the template :file:`formtools/form.html`,
|
By default, the form is rendered via the template :file:`formtools/form.html`,
|
||||||
and the preview page is rendered via the template :file:`formtools.preview.html`.
|
and the preview page is rendered via the template :file:`formtools/preview.html`.
|
||||||
These values can be overridden for a particular form preview by setting
|
These values can be overridden for a particular form preview by setting
|
||||||
:attr:`~django.contrib.formtools.FormPreview.preview_template` and
|
:attr:`~django.contrib.formtools.FormPreview.preview_template` and
|
||||||
:attr:`~django.contrib.formtools.FormPreview.form_template` attributes on the
|
:attr:`~django.contrib.formtools.FormPreview.form_template` attributes on the
|
||||||
|
|
Loading…
Reference in New Issue