Opened 9 years ago

Closed 9 years ago

#23828 closed Uncategorized (invalid)

mistake in example in /db/managers/ documentation

Reported by: aakelm Owned by: nobody
Component: Documentation Version: 1.7
Severity: Normal Keywords: manager
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The page

https://docs.djangoproject.com/en/dev/topics/db/managers/

has an example which begins with the line

class ExtraManager(models.Model):

It seems to me that the inheritance there is wrong, and it should be

class ExtraManager(models.Manager):

Change History (1)

comment:1 by Tim Graham, 9 years ago

Resolution: invalid
Status: newclosed

I don't think so. ExtraManager looks like it's an abstract model used to add a manager to a model.

Note: See TracTickets for help on using tickets.
Back to Top