Explorar o código

Fixed a typo in the managers docs.

James Beith %!s(int64=9) %!d(string=hai) anos
pai
achega
e03798a4ae
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      docs/topics/db/managers.txt

+ 2 - 2
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()