      def get_value(self, dictionary):
          # We override the default field access in order to support
          # lists in HTML forms.
          if html.is_html_input(dictionary):
              ret = dictionary.getlist(self.field_name)
              if getattr(self.root, 'partial', False) and not ret:
                  ret = empty
              return ret
  
          return dictionary.get(self.field_name, empty)
  
      def to_internal_value(self, data):
          if isinstance(data, type('')) or not hasattr(data, '__iter__'):
              self.fail('not_a_list', input_type=type(data).__name__)
 
</s>
            return dictionary.getlist(self.field_name)
      def get_value(self, dictionary):
          # We override the default field access in order to support
          # lists in HTML forms.
          if html.is_html_input(dictionary):
            return dictionary.getlist(self.field_name)
            return dictionary.getlist(self.field_name)
            return dictionary.getlist(self.field_name)
            return dictionary.getlist(self.field_name)
            return dictionary.getlist(self.field_name)
          return dictionary.get(self.field_name, empty)
  
      def to_internal_value(self, data):
          if isinstance(data, type('')) or not hasattr(data, '__iter__'):
              self.fail('not_a_list', input_type=type(data).__name__)
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Fixed #2761 - ListField truncation on HTTP PATCH

- Checked ``partial`` state when getting value in appropriate field
  classes; return ``empty`` immediately if key not submitted.
rest_framework/fields.py