MCPcopy
hub / github.com/django/django / run_validators

Method run_validators

django/contrib/postgres/fields/array.py:224–235  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

222 )
223
224 def run_validators(self, value):
225 super().run_validators(value)
226 for index, part in enumerate(value):
227 try:
228 self.base_field.run_validators(part)
229 except exceptions.ValidationError as error:
230 raise prefix_validation_error(
231 error,
232 prefix=self.error_messages["item_invalid"],
233 code="item_invalid",
234 params={"nth": index + 1},
235 )
236
237 def formfield(self, **kwargs):
238 return super().formfield(

Callers 1

get_default_usernameFunction · 0.45

Calls 1

prefix_validation_errorFunction · 0.90

Tested by

no test coverage detected