MCPcopy
hub / github.com/django/django / _handle_param

Method _handle_param

django/contrib/gis/db/models/functions.py:102–109  ·  view source on GitHub ↗
(self, value, param_name="", check_types=None)

Source from the content-addressed store, hash-verified

100 return res
101
102 def _handle_param(self, value, param_name="", check_types=None):
103 if not hasattr(value, "resolve_expression"):
104 if check_types and not isinstance(value, check_types):
105 raise TypeError(
106 "The %s parameter has the wrong type: should be %s."
107 % (param_name, check_types)
108 )
109 return value
110
111
112class GeoFunc(GeoFuncMixin, Func):

Callers 12

as_oracleMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected