#24758 closed Bug (fixed)
Incorrect docstring in Options.get_fields()
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:
TabularUnified django/db/models/options.py