#11137 closed (fixed)
Typo in Proxy Model documentation (topics/db/models)
Reported by: | Erik Karulf | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | proxy model | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The documentation for proxy models in [source:django/trunk/docs/topics/db/models.txt docs/topics/db/models.txt] is inconsistent with [source:django/trunk/docs/topics/db/managers.txt docs/topics/db/managers.txt]. The models documentation is missing the declaration of django.db.models.Models for it's example class ExtraManagers.
[source:django/trunk/docs/topics/db/models.txt#10797 r10797]
# Create an abstract class for the new manager. class ExtraManagers: secondary = NewManager() class Meta: abstract = True class MyUser(User, ExtraManagers): class Meta: proxy = True
Proposed:
# Create an abstract class for the new manager. class ExtraManagers(models.Model): secondary = NewManager() class Meta: abstract = True class MyUser(User, ExtraManagers): class Meta: proxy = True
Attachments (1)
Change History (4)
by , 15 years ago
Attachment: | proxy-model.patch added |
---|
comment:1 by , 15 years ago
milestone: | → 1.1 |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Proposed solution