diff options
| author | James Beith <james@beith.com> | 2015-11-27 18:49:35 +0000 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2015-11-27 13:54:19 -0500 |
| commit | 85a021b9cbd47b3d0fc5c157a935fdd15d80f1f2 (patch) | |
| tree | 7eef2ed320919940d209109ef9de2109ab203cac /docs | |
| parent | 6914a716cb062a9a3648deb0360b7e276cd59dba (diff) | |
[1.8.x] Fixed a typo in the managers docs.
Backport of e03798a4ae6e0eca43c1b238dd96b3798aaeca81 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/db/managers.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/managers.txt b/docs/topics/db/managers.txt index 3c0c3f3fb8..30f7929d66 100644 --- a/docs/topics/db/managers.txt +++ b/docs/topics/db/managers.txt @@ -309,11 +309,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() |
