mirror of
https://github.com/Hopiu/django.git
synced 2026-05-15 19:13:11 +00:00
Fixed a typo in the managers docs.
This commit is contained in:
parent
8bc0266b3f
commit
e03798a4ae
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue