MCPcopy
hub / github.com/django/django / _has_contribute_to_class

Function _has_contribute_to_class

django/db/models/base.py:90–92  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

88
89
90def _has_contribute_to_class(value):
91 # Only call contribute_to_class() if it's bound.
92 return not inspect.isclass(value) and hasattr(value, "contribute_to_class")
93
94
95class ModelBase(type):

Callers 2

__new__Method · 0.85
add_to_classMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected