MCPcopy
hub / github.com/django/django / local_concrete_fields

Method local_concrete_fields

django/db/models/options.py:587–597  ·  view source on GitHub ↗

Return a list of all concrete fields on the model. 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

585
586 @cached_property
587 def local_concrete_fields(self):
588 """
589 Return a list of all concrete fields on the model.
590
591 Private API intended only to be used by Django itself; get_fields()
592 combined with filtering of field properties is the public API for
593 obtaining this field list.
594 """
595 return make_immutable_fields_list(
596 "local_concrete_fields", (f for f in self.local_fields if f.concrete)
597 )
598
599 @cached_property
600 def many_to_many(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected