On 3/8/07, Rubic <[EMAIL PROTECTED]> wrote: > > 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/ >
That's pretty slick if I do say so myself. Thanks, I think what I really need to do is sit down and make a test model that has, m2m, o2m, and FK relations, and then build a form and a bunch of tests and just hammer out exactly what's going on in there. > -- > 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 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 -~----------~----~----~----~------~----~------~--~---