JP wrote:
> What if widgets could act as filters? I think using filter syntax  for
> setting the widget for a field in the template would be pretty
> natural::
>
>   {{ form.field }}
>
> draws the default widget for the field type, but if you want to use
> SomeOtherWidget, you can do::
>
>   {{ form.field|SomeOtherWidget }}

Or how about template tags for both the default form html and for form
fields (default html or other widget):

{% form form %}
{% formfield form.field %}
{% formfield form.field widget %}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to