How can I limit the choices in an AddManipulator?

I have a m2m relation to User, and it presents all users. I'd like to
filter and only present a subset.

I've tried setting the choices of the SelectMultipleField, but haven't
had any luck finding the correct incantation. I've gotten as far as
trying this after I create the form

form['field_name'].formfield.choices = User.objects.filter(query)

but get some error regarding unpacking a tuple. (I think this is more a
Python gotcha than a Django one.)

Any help?
Todd


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

Reply via email to