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
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':
2 matches
Mail list logo