              data = html.parse_html_list(data)
          if isinstance(data, type('')) or not hasattr(data, '__iter__'):
              self.fail('not_a_list', input_type=type(data).__name__)
          return [self.child.run_validation(item) for item in data]
  
      def to_representation(self, data):
          """
          List of object instances -> List of dicts of primitive datatypes.
          """
 
</s>
        if not self.allow_empty and len(data) == 0:
            self.fail('empty')
              data = html.parse_html_list(data)
          if isinstance(data, type('')) or not hasattr(data, '__iter__'):
              self.fail('not_a_list', input_type=type(data).__name__)
        if not self.allow_empty and len(data) == 0:
            self.fail('empty')
          return [self.child.run_validation(item) for item in data]
  
      def to_representation(self, data):
          """
          List of object instances -> List of dicts of primitive datatypes.
          """
keep keep add keep keep keep keep keep keep
 Added allow_empty flag for ListField, ListSerializer, ManyRelation, MultipleChoiceField.
rest_framework/fields.py