MCPcopy
hub / github.com/django/django / concrete_fields

Method concrete_fields

django/db/models/options.py:574–584  ·  view source on GitHub ↗

Return a list of all concrete fields on the model and its parents. Private API intended only to be used by Django itself; get_fields() combined with filtering of field properties is the public API for obtaining this field list.

(self)

Source from the content-addressed store, hash-verified

572
573 @cached_property
574 def concrete_fields(self):
575 """
576 Return a list of all concrete fields on the model and its parents.
577
578 Private API intended only to be used by Django itself; get_fields()
579 combined with filtering of field properties is the public API for
580 obtaining this field list.
581 """
582 return make_immutable_fields_list(
583 "concrete_fields", (f for f in self.fields if f.concrete)
584 )
585
586 @cached_property
587 def local_concrete_fields(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected