#8721: Two typos in /documentation/form_preview/
--------------------------------------------+-------------------------------
Reporter: Rodolfo <[EMAIL PROTECTED]> | Owner: nobody
Status: new | Milestone:
Component: Documentation | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
--------------------------------------------+-------------------------------
On "How to use FormPreview", 3rd step, the code snippet imports
"'''SomeModel'''", and then mistakenly refers to
"SomeModelFormPreview('''SomeModelForm'''))".
Here is the current text in the documentation:
{{{
3. Change your URLconf to point to an instance of your FormPreview
subclass:
from myapp.preview import SomeModelFormPreview
from myapp.models import SomeModel
from django import forms
…and add the following line to the appropriate model in your URLconf:
(r'^post/$', SomeModelFormPreview(SomeModelForm)),
where SomeModelForm is a Form or ModelForm class for the model.
}}}
Also, on "FormPreview templates", a template is referenced using slash-
notation and then using dot-notation. Probably should be slash for both.
{{{
By default, the form is rendered via the template formtools/form.html, and
the preview page is rendered via the template formtools.preview.html.
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8721>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---