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 = models.ManyToMany(Site) c = Country.objects.get(pk=1) c.people.all() ... I want to be able to extend the "c.people" manager, I want to filter it by the current site (settings.Site). I know I can do it in the view, but I just wondering if this is possible, so I can continue using generic views :) Thanks, best regards! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---