Is this really much better than using your own custom manager as the default automatic manager (used for reverse relations) with `use_for_related_fields = True`?
Your custom manager could do nothing to filter results by default and so behave the same as the default automatic manager, but provide additional methods that filter the results as you need. Cheers. Tai. On Oct 3, 3:25 pm, Vivek Narayanan <[email protected]> wrote: > Hi, > > I've added a patch that provides functionality for selecting a custom > manager in a reverse relation , rather than the default manager. For > example: > > author = Author.objects.get(id=1) > # Selects the manager 'foobar' of Post. > mgr = author.post_set.managers("foobar") > > https://code.djangoproject.com/ticket/3871 > > Would be great if someone could review it. > > Vivek -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.
