#24758 closed Bug (fixed)
Incorrect docstring in Options.get_fields()
Reported by: | Eric Zarowny | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.8 |
Severity: | Normal | Keywords: | _meta, documentation |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
According to the docstring for Options.get_fields():
Returns a list of fields associated to the model. By default will only return forward fields.
However, the call to _get_fields does not set reverse=False when its default is True. I can't really tell if this was intentional or not. I would be happy to make a patch / pull request to fix this either way.
Change History (4)
comment:1 by , 10 years ago
Component: | Database layer (models, ORM) → Documentation |
---|---|
Has patch: | set |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 10 years ago
Summary: | Options.get_fields() returns reverse fields → Incorrect docstring in Options.get_fields() |
---|
Note:
See TracTickets
for help on using tickets.
Proposed update of the docstring:
django/db/models/options.py