I have a drop-down list to select the graduation year -
graduation = forms.ChoiceField(choices=[(x,str(x)) for x in graduation_range])
How would I add an extra field and make it default / display? For example, something like "Choose year."
I'm currently doing -
graduation_range = range(1970,2015)
graduation_range.append('Select Year')
But there seems to be a more direct way to do this. Thank.
source
share