On Tue, Oct 7, 2008 at 6:01 PM, Dylan Reinhardt <[EMAIL PROTECTED]>wrote:

>
> Is there any way to make Django ManyToManyField objects not be bi-
> directional?
>
> I have a Product object with a self-referencing M2M field.  I want
> each Product to maintain its *own* list of related products... I do
> not want Products affecting each other's lists.  When A points to B, I
> don't necessarily want B pointing to A.
>
> I can appreciate how bi-directionality is the right answer for most
> cases... but is there any way to suppress this behavior?
>
>
I think you want symmetrical=False:

http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ManyToManyFields.symmetrical

Karen

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