On 4/20/07, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote:
>
> Hi guys!
>
> Is there a way to define a custom manager on a ManyToMany
> relationship? See the code above:

Only on a limited basis. The relation descriptor inherits the default
manager for the class it is relating to. So, in your example, if
Country defines a non-default manager, the m2m field will use the
user-specified manager class.

However, you can't specify that the m2m descriptor use a different
manager to the table default. This has been proposed a number of
times, but nobody has been able to suggest an appropriate syntax.

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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to