Django's automated form renderers form.as_table, form.as_p and
form.as_ul are great.  We have a recurring situation where we'd like
the equivalent of these but in a "read-only" version: i.e. not using
<input> or <textarea>, but instead simply using strings to represent
the values of all Django Field types.

We have implemented this by adding a flag to the Form._html_render
method which then passes the flag on to the Widget.render() methods
which are implemented in the various Widget subclasses.  This works
very nicely.  We'd love to get feedback on the idea and if our
approach is sound, then we'd like to offer a patch to the Django
trunk.

Ian

PS - Class and method names from memory -- I don't have access to
source code at the moment.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to