Well, this is useful in the case where you have multiple custom
managers
defined on a model and you need to a select a specific manager. Doing
so,
common filter operations that are long expressions or are quite
complicated,
need not be repeated every time.
On Oct 4, 9:40 am, Tai Lee wrote:
> Yo
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
a
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")
ht