class PersonalForm(ModelForm):
class Meta:
model = InfoPersonal
widgets = {'dateofbirth' : SelectDateWidget()}
Just the simple implementation gives a dropdown for the Year starting from 2011. I would rather have my users not be newborn babies. How do I customize this ?
You can pass
yearsargument wiith list of years in any order. For example