my_field = ChoiceField(choices=[(1, 1), (2, 2)], initial=1) doesn't work? On Jan 26, 7:04 pm, "Denis Frère" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm discovering newforms. > > It works pretty well, but I can't manage to give an initial selection > in a ChoiceField (Select widget). > I tried to read the code. I understand I have to give a "value" > parameter to Select.render(), but how do I pass that value in the form > initial data dictionary ? > > Thank you. > > Denis
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---