fix manager docs imports

Mentioned in #61
fix_request_path_info
Diederik van der Boor 2018-02-19 11:06:03 +01:00
parent ff57aa57a3
commit d3f044871b
1 changed files with 3 additions and 3 deletions

View File

@ -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:: explicitly add the default manager first, and then your custom manager::
from polymorphic.models import PolymorphicModel from polymorphic.models import PolymorphicModel
from polymorphic.manager import PolymorphicManager from polymorphic.managers import PolymorphicManager
class TimeOrderedManager(PolymorphicManager): class TimeOrderedManager(PolymorphicManager):
def get_queryset(self): 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:: expected in models inheriting from this base model::
from polymorphic.models import PolymorphicModel from polymorphic.models import PolymorphicModel
from polymorphic.manager import PolymorphicManager from polymorphic.managers import PolymorphicManager
class TimeOrderedManager(PolymorphicManager): class TimeOrderedManager(PolymorphicManager):
def get_queryset(self): 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:: instead of Django's QuerySet as the base class::
from polymorphic.models import PolymorphicModel from polymorphic.models import PolymorphicModel
from polymorphic.manager import PolymorphicManager from polymorphic.managers import PolymorphicManager
from polymorphic.query import PolymorphicQuerySet from polymorphic.query import PolymorphicQuerySet
class MyQuerySet(PolymorphicQuerySet): class MyQuerySet(PolymorphicQuerySet):