my_choices = [(bo.id, bo.name) for bo in Business.objects.all()]
business = models.ManyToManyField('Business', choices=my_choices)

But can I ask why you are trying to set the choices value on a
ManyToMany relationship? The admin will already automaticly only let
you select from the Business model

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