Kaydet (Commit) 6a7b27c7 authored tarafından Tim Graham's avatar Tim Graham

[1.8.x] Fixed #24758 -- Corrected Options.get_fields() docstring.

Backport of b99114f6 from master
üst 51ebc880
...@@ -727,9 +727,9 @@ class Options(object): ...@@ -727,9 +727,9 @@ class Options(object):
def get_fields(self, include_parents=True, include_hidden=False): def get_fields(self, include_parents=True, include_hidden=False):
""" """
Returns a list of fields associated to the model. By default will only Returns a list of fields associated to the model. By default, includes
return forward fields. This can be changed by enabling or disabling forward and reverse fields, fields derived from inheritance, but not
field types using the parameters: hidden fields. The returned fields can be changed using the parameters:
- include_parents: include fields derived from inheritance - include_parents: include fields derived from inheritance
- include_hidden: include fields that have a related_name that - include_hidden: include fields that have a related_name that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment