Django-birthdate fildset作为表单小部件
|
如果我在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>
我需要创建一个新的小部件还是对此有答案?如果没有答案,我将不胜感激每一个建议如何做到这一点
没有找到相关结果
已邀请:
2 个回复
讹巳漓把备
芦歉竭皑