On 8/21/06, James Punteney <[EMAIL PROTECTED]> wrote:

class Animal(models.Model):
  name = models.CharField(maxlength=200)
  prey = models.ManyToManyField("self", related_name="predator",
symmetrical=False, filter_interface=models.HORIZONTAL)

And it works as expected except I can only edit the "prey" part of the
relationship. Ideally I'd like to be able to specify both predator and
prey when adding or editing an animal. Is that possible to do?

It should be possible. The m2m_recursive modeltests should give an example of what you can do.

To help diagnose your problem - what exactly is failing? Where error message are you getting?
 
Yours,
Russ Magee %-)

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