Russell Keith-Magee wrote: > +1 to providing the ability to select a widget at the template level, > but -1 to requiring .as_text for the default case.
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 }} The tough part would be handling things on the POST side when SomeOtherWidget is a collection of html fields that need to be processed into one value, or something like a tags field that renders as comma-separated text but should be processed as a list. For that case I think you'd have to set the widget at form definition time, otherwise you'd have mo way to know what widget's to_python method to call to convert the input. JP --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---