SelectDateWidget labels

24 views
Skip to first unread message

James Rivett-Carnac

unread,
Jul 12, 2012, 6:00:44 AM7/12/12
to django...@googlegroups.com
I am trying to put labels on subwidgets in SelectDateWidget, but I cannot see how to do this easily.

The only way I can see to do this is to rewrite the render function to add in a label before each input.  The problem with this is the label then is embeded with the select boxes and can't be accessed as context variables.  It is also not rendered nicely when form.as_p or form.as_ul are called in templates (eg - no difference).

I cannot find any documentation on how to deal with this.

Any help would be appreciated.
Reply all
Reply to author
Forward
0 new messages