On Mon, Feb 25, 2008 at 9:10 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>  Which - as expected - creates a multi-select box with the appropriate
>  cars. Problem is, when the user selects one the form validation kicks
>  it out, saying it is not a valid choice. If I don't use the custom
>  widget everything is fine, other than it showing cars it shouldn't.

You really want to be using a ModelChoiceField here; it takes a
'queryset' argument and then handles setting up the choices and such.

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to