Here is the field declaration in a form:
max_number = forms.ChoiceField(widget = forms.Select(),
choices = ([('1','1'), ('2','2'),('3','3'), ]), initial='3', required = True,)
I would like to set the initial value to be 3 and this doesn't seem to work. I have played about with the param, quotes/no quotes etc... but no change.
A few results I've found through Google suggest it is possible to set the initial value but I've never ever managed to get it to work! I am on django 1.0 by the way.
Could anyone give me a definitive answer if it is possible? And/or the necessary tweak in my code snippet?
Many thanks.