I have a dropdown form for one to select their graduation year —
graduation = forms.ChoiceField(choices=[(x,str(x)) for x in graduation_range])
How would I add an additional field and make that the default selection/display? For example, something like “Select Year”.
Currently, I’m doing —
graduation_range = range(1970,2015)
graduation_range.append('Select Year')
But it seems there must be a more straight-forward way to do this.
Thank you.
Just add:
So:
BTW, I used
unicodebecause you were usingstr, but in practice a year field should probably be an integer, since all years are integers.