  
  from rest_framework import serializers, status
  from rest_framework.decorators import api_view
  from rest_framework.response import Response
  from rest_framework.settings import api_settings
  from rest_framework.test import APIRequestFactory
  from rest_framework.views import APIView
 
</s> remove         if not isinstance(detail, dict) and not isinstance(detail, list):
 </s> add         if isinstance(detail, tuple):
            detail = list(detail)
        elif not isinstance(detail, dict) and not isinstance(detail, list): </s> remove     if isinstance(data, list):
 </s> add     if isinstance(data, (list, tuple)):
from rest_framework.exceptions import ValidationError
  
  from rest_framework import serializers, status
  from rest_framework.decorators import api_view
from rest_framework.exceptions import ValidationError
  from rest_framework.response import Response
  from rest_framework.settings import api_settings
  from rest_framework.test import APIRequestFactory
  from rest_framework.views import APIView
keep keep add keep keep keep keep
 Handle tuples same as lists in ValidationError detail context (#7647) 
tests/test_validation_error.py