Explorar el Código

Fixing manager documentation inaccuracy

Frank Wiles hace 11 años
padre
commit
164df40501
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docs/topics/db/managers.txt

+ 1 - 1
docs/topics/db/managers.txt

@@ -219,7 +219,7 @@ custom ``QuerySet`` if you also implement them on the ``Manager``::
 
     class PersonManager(models.Manager):
         def get_queryset(self):
-            return PersonQuerySet()
+            return PersonQuerySet(self.model, using=self._db)
 
         def male(self):
             return self.get_queryset().male()