class class_or_instance_method
from django.db.models.query_utils import class_or_instance_method
Hook used in RegisterLookupMixin to return partial functions depending on the caller type (instance or class of models.Field).
Ancestors (MRO)
- builtins.object
- django.db.models.query_utils.class_or_instance_method