Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed bugs in docs/model-api.txt

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 887131c749d92eb87bee93cff950ea4fec484dc4 1 parent 3248a28
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 docs/model-api.txt
6 docs/model-api.txt
@@ -1413,7 +1413,7 @@ all objects, and one that returns only the books by Roald Dahl::
# First, define the Manager subclass.
class DahlBookManager(models.Manager):
def get_query_set(self):
- return super(Manager, self).get_query_set().filter(author='Roald Dahl')
+ return super(DahlBookManager, self).get_query_set().filter(author='Roald Dahl')
# Then hook it into the Book model explicitly.
class Book(models.Model):
@@ -1444,11 +1444,11 @@ For example::
class MaleManager(models.Manager):
def get_query_set(self):
- return super(Manager, self).get_query_set().filter(sex='M')
+ return super(MaleManager, self).get_query_set().filter(sex='M')
class FemaleManager(models.Manager):
def get_query_set(self):
- return super(Manager, self).get_query_set().filter(sex='F')
+ return super(FemaleManager, self).get_query_set().filter(sex='F')
class Person(models.Model):
first_name = models.CharField(maxlength=50)

0 comments on commit 887131c

Please sign in to comment.
Something went wrong with that request. Please try again.