【发布时间】:2011-09-22 12:08:39
【问题描述】:
如果我有 forms.py:
birthdate = forms.DateTimeField()
和html:
<fieldset class='birthday-picker'>
<select class='birth-year' name='birth[year]'></select>
<select class='birth-month' name='birth[month]'></select>
<select class='birth-day' name='birth[day]'></select>
<input type='hidden' name='birthdate' />
</fieldset>
我需要创建一个新的小部件还是有一个答案?如果没有答案,我将不胜感激如何做到这一点的每一个建议
【问题讨论】: