#10557: FormWizard should not output raw HTML for previous_fields
-------------------------------------------------------+--------------------
Reporter: Matthew Flanagan <[email protected]> | Owner: nobody
Status: new | Milestone:
Component: django.contrib.formtools | Version: SVN
Keywords: wizard | Stage:
Unreviewed
Has_patch: 1 |
-------------------------------------------------------+--------------------
When using a {{{FormWizard}}} to generate forms it populates a context
variable called {{{previous_fields}}} which contains raw HTML hidden
fields for the previous step values and security hashes. This does not
play well when you are trying to use the FormWizard in other types markup.
My use case is that I'm using extjs for my application front-end and form
presentation (though I could be using something else like XForms for
example). I have a templatetag that spits out the appropriate extjs form
widget when given a {{{bound field}}}. This fails for the {{{FormWizard}}}
{{{previous_fields}}} because it is raw HTML.
The patch attached turns {{{previous_fields}}} into a list of bound field
objects that can be iterated over to output the same raw HTML as before or
give you more control over the output.
--
Ticket URL: <http://code.djangoproject.com/ticket/10557>
Django <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
-~----------~----~----~----~------~----~------~--~---