              })
  
          ret = []
          errors = []
  
          for item in data:
              try:
 
</s> remove         'not_a_list': _('Expected a list of items but got type "{input_type}".')
 </s> add         'not_a_list': _('Expected a list of items but got type "{input_type}".'),
        'empty': _('This selection may not be empty.') </s> remove         'not_a_list': _('Expected a list of items but got type "{input_type}".')
 </s> add         'not_a_list': _('Expected a list of items but got type "{input_type}".'),
        'empty': _('This list may not be empty.')
        if not self.allow_empty and len(data) == 0:
            message = self.error_messages['empty']
            raise ValidationError({
                api_settings.NON_FIELD_ERRORS_KEY: [message]
            })

              })
  
        if not self.allow_empty and len(data) == 0:
            message = self.error_messages['empty']
            raise ValidationError({
                api_settings.NON_FIELD_ERRORS_KEY: [message]
            })

          ret = []
          errors = []
  
          for item in data:
              try:
keep add keep keep keep keep keep
 Added allow_empty flag for ListField, ListSerializer, ManyRelation, MultipleChoiceField. 
rest_framework/serializers.py