[1.9.x] Fixed a typo in the managers docs.
Backport of e03798a4ae
from master
This commit is contained in:
parent
47f0ac0b16
commit
75ec064808
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue