              code = self.default_code
  
          # For validation failures, we may collect many errors together,
          # so the details should always be coerced to a list if not already.
          if not isinstance(detail, dict) and not isinstance(detail, list):
              detail = [detail]
  
          self.detail = _get_error_details(detail, code)
  
  
 
</s> remove     if isinstance(data, list):
 </s> add     if isinstance(data, (list, tuple)):
        if isinstance(detail, tuple):
            detail = list(detail)
        elif not isinstance(detail, dict) and not isinstance(detail, list):
              code = self.default_code
  
          # For validation failures, we may collect many errors together,
          # so the details should always be coerced to a list if not already.
        if isinstance(detail, tuple):
            detail = list(detail)
        elif not isinstance(detail, dict) and not isinstance(detail, list):
              detail = [detail]
  
          self.detail = _get_error_details(detail, code)
  
  
keep keep keep keep replace keep keep keep keep keep
 Handle tuples same as lists in ValidationError detail context (#7647) 
rest_framework/exceptions.py