mirror of
https://github.com/django/django.git
synced 2025-02-23 07:55:07 +00:00
Fixing manager documentation inaccuracy
This commit is contained in:
parent
1864c6b5ad
commit
164df40501
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user