Anders,

I think the simple answer is for foreign keys (including
ChoiceFields when they're foreign keys), you want
to pass it the id/pk of the object.  If the ChoiceFields
are a list of tuples, just pass it the value.

For multiple selection values, pass it a list of the values
you want selected.  I have an example here where I
store the value as a comma-delimited string, and use
a custom widget to convert it to a list:
http://www.djangosnippets.org/snippets/23/

--
Jeff Bauer
Rubicon, Inc.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to