Kaydet (Commit) 85a021b9 authored tarafından James Beith's avatar James Beith Kaydeden (comit) Simon Charette

[1.8.x] Fixed a typo in the managers docs.

Backport of e03798a4 from master
üst 6914a716
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment