From d3f044871b3236ce3a37bffd2466143c98412dd0 Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Mon, 19 Feb 2018 11:06:03 +0100 Subject: [PATCH] fix manager docs imports Mentioned in #61 --- docs/managers.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/managers.rst b/docs/managers.rst index f0a0163..0288629 100644 --- a/docs/managers.rst +++ b/docs/managers.rst @@ -11,7 +11,7 @@ manager class, just derive your manager from ``PolymorphicManager`` instead of explicitly add the default manager first, and then your custom manager:: from polymorphic.models import PolymorphicModel - from polymorphic.manager import PolymorphicManager + from polymorphic.managers import PolymorphicManager class TimeOrderedManager(PolymorphicManager): def get_queryset(self): @@ -41,7 +41,7 @@ managers defined in polymorphic base models continue to work as expected in models inheriting from this base model:: from polymorphic.models import PolymorphicModel - from polymorphic.manager import PolymorphicManager + from polymorphic.managers import PolymorphicManager class TimeOrderedManager(PolymorphicManager): def get_queryset(self): @@ -75,7 +75,7 @@ you may define your own custom queryset classes. Just use PolymorphicQuerySet instead of Django's QuerySet as the base class:: from polymorphic.models import PolymorphicModel - from polymorphic.manager import PolymorphicManager + from polymorphic.managers import PolymorphicManager from polymorphic.query import PolymorphicQuerySet class MyQuerySet(PolymorphicQuerySet):