Ver código fonte

Fixing manager documentation inaccuracy

Frank Wiles 11 anos atrás
pai
commit
164df40501
1 arquivos alterados com 1 adições e 1 exclusões
  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()