MCPcopy Index your code
hub / github.com/encode/django-rest-framework / to_internal_value

Method to_internal_value

rest_framework/fields.py:566–577  ·  view source on GitHub ↗

Transform the *incoming* primitive data into a native value.

(self, data)

Source from the content-addressed store, hash-verified

564 raise ValidationError(errors)
565
566 def to_internal_value(self, data):
567 """
568 Transform the *incoming* primitive data into a native value.
569 """
570 raise NotImplementedError(
571 '{cls}.to_internal_value() must be implemented for field '
572 '{field_name}. If you do not need to support write operations '
573 'you probably want to subclass `ReadOnlyField` instead.'.format(
574 cls=self.__class__.__name__,
575 field_name=self.field_name,
576 )
577 )
578
579 def to_representation(self, value):
580 """

Callers 5

run_validationMethod · 0.95
to_internal_valueMethod · 0.45
to_internal_valueMethod · 0.45
to_internal_valueMethod · 0.45

Calls

no outgoing calls