Re: Set field value for ChoiceField

2010-05-03 Thread Thomas Allen
The field was being set correctly, but my template did not show this until now for some reason. Thomas On May 3, 5:34 pm, Thomas Allen wrote: > If I'm instantiating a form, how do I set a ChoiceField value in it? > > I have a form with an attribute "role" which I am

Set field value for ChoiceField

2010-05-03 Thread Thomas Allen
If I'm instantiating a form, how do I set a ChoiceField value in it? I have a form with an attribute "role" which I am setting to the user's current role, like so: form = EditUserForm({ 'last_name': user.last_name, 'first_name': user.first_name, 'email': user.email, 'role':