4👍
✅
You use the years= argument:
def someform(forms.Form):
birthdate = forms.DateField(widget=SelectDateWidget(years=range(1990,2011))
Source:stackexchange.com