|
@@ -2489,18 +2489,11 @@ Attributes for fields
|
|
|
|
|
|
.. attribute:: Field.hidden
|
|
|
|
|
|
- Boolean flag that indicates if a field is used to back another non-hidden
|
|
|
- field's functionality (e.g. the ``content_type`` and ``object_id`` fields
|
|
|
- that make up a ``GenericForeignKey``). The ``hidden`` flag is used to
|
|
|
- distinguish what constitutes the public subset of fields on the model from
|
|
|
- all the fields on the model.
|
|
|
-
|
|
|
- .. note::
|
|
|
-
|
|
|
- :meth:`Options.get_fields()
|
|
|
- <django.db.models.options.Options.get_fields()>`
|
|
|
- excludes hidden fields by default. Pass in ``include_hidden=True`` to
|
|
|
- return hidden fields in the results.
|
|
|
+ Boolean flag that indicates if a field is hidden and should not be returned
|
|
|
+ by :meth:`Options.get_fields()
|
|
|
+ <django.db.models.options.Options.get_fields>` by default. An example is
|
|
|
+ the reverse field for a :class:`~django.db.models.ForeignKey` with a
|
|
|
+ ``related_name`` that starts with ``'+'``.
|
|
|
|
|
|
.. attribute:: Field.is_relation
|
|
|
|