mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-04-25 05:14:43 +00:00
Fixed GH-125; add doc note about InheritanceQuerySetMixin.
This commit is contained in:
parent
a15e2ded1e
commit
a3c5bbf119
1 changed files with 7 additions and 0 deletions
|
|
@ -212,3 +212,10 @@ Now you have a "pass through manager" that can also take advantage of
|
|||
GeoDjango's spatial lookups. You can similarly add additional functionality to
|
||||
any manager by composing that manager with ``InheritanceManagerMixin`` or
|
||||
``QueryManagerMixin``.
|
||||
|
||||
(Note that any manager class using ``InheritanceManagerMixin`` must return a
|
||||
``QuerySet`` class using ``InheritanceQuerySetMixin`` from its ``get_queryset``
|
||||
method. This means that if composing ``InheritanceManagerMixin`` and
|
||||
``PassThroughManagerMixin``, the ``QuerySet`` class passed to
|
||||
``PassThroughManager.for_queryset_class`` must inherit
|
||||
``InheritanceQuerySetMixin``.)
|
||||
|
|
|
|||
Loading…
Reference in a new issue