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
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
2 matches
Mail list logo