Re: ManyToManyField and custom manager

2007-04-19 Thread Russell Keith-Magee
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 ex

ManyToManyField and custom manager

2007-04-19 Thread Michel Thadeu Sabchuk
Hi guys! Is there a way to define a custom manager on a ManyToMany relationship? See the code above: ... from django.contrib.sites.models import Site class Country(models.Model): ... class Person(models.Model): country = models.ManyToMany(Country, related_name="people") site = m