summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Beith <james@beith.com>2015-11-27 18:49:35 +0000
committerSimon Charette <charette.s@gmail.com>2015-11-27 13:53:49 -0500
commit75ec0648083f9ed320887d56c8a99b4f263c4f5f (patch)
tree6c4abcb1e7611feeebd676a83f14a8a7a2b61a3f
parent47f0ac0b160fb542197f7757bff356c5b6911569 (diff)
[1.9.x] Fixed a typo in the managers docs.
Backport of e03798a4ae6e0eca43c1b238dd96b3798aaeca81 from master
-rw-r--r--docs/topics/db/managers.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/db/managers.txt b/docs/topics/db/managers.txt
index ae5bed536f..0d68ad7e0a 100644
--- a/docs/topics/db/managers.txt
+++ b/docs/topics/db/managers.txt
@@ -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()