class PersonalForm(ModelForm): class Meta: model = InfoPersonal widgets = {'dateofbirth' : SelectDateWidget()}
Just a simple implementation gives a drop-down menu for the Year starting in 2011. I would prefer that my users are not newborns. How to change this?
You can pass an argument yearswith years in any order. for instance
years
SelectDateWidget(years=range(1950, 2012))