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

Method get_value

rest_framework/serializers.py:628–636  ·  view source on GitHub ↗

Given the input dictionary, return the field value.

(self, dictionary)

Source from the content-addressed store, hash-verified

626 return []
627
628 def get_value(self, dictionary):
629 """
630 Given the input dictionary, return the field value.
631 """
632 # We override the default field access in order to support
633 # lists in HTML forms.
634 if html.is_html_input(dictionary):
635 return html.parse_html_list(dictionary, prefix=self.field_name, default=empty)
636 return dictionary.get(self.field_name, empty)
637
638 def run_validation(self, data=empty):
639 """

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected