Opened 11 years ago
Closed 11 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
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):
  Note:
 See   TracTickets
 for help on using tickets.
    
I don't think so.
ExtraManagerlooks like it's an abstract model used to add a manager to a model.