Commit e03798a4 authored by James Beith's avatar James Beith Committed by Simon Charette
Browse files

Fixed a typo in the managers docs.

parent 8bc0266b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -307,11 +307,11 @@ returns a *subclass* of your base ``Manager`` with a copy of the custom
            return

    class MyModel(models.Model):
        objects = BaseManager.from_queryset(CustomQueryset)()
        objects = BaseManager.from_queryset(CustomQuerySet)()

You may also store the generated class into a variable::

    CustomManager = BaseManager.from_queryset(CustomQueryset)
    CustomManager = BaseManager.from_queryset(CustomQuerySet)

    class MyModel(models.Model):
        objects = CustomManager()