  # under `serializers`, in order to minimize potential confusion with Django's
  # built in `ValidationError`. For example:
  #
  # from rest_framework import serializers
  # raise serializers.ValidationError("Value was invalid")
  
  class ValidationError(APIException):
      status_code = status.HTTP_400_BAD_REQUEST
  
      def __init__(self, detail):
 
</s> remove         'invalid_choice': _('`{input}` is not a valid choice.'),
        'not_a_list': _('Expected a list of items but got type `{input_type}`.')
 </s> add         'invalid_choice': _('"{input}" is not a valid choice.'),
        'not_a_list': _('Expected a list of items but got type "{input_type}".') </s> remove         'invalid_choice': _('`{input}` is not a valid choice.')
 </s> add         'invalid_choice': _('"{input}" is not a valid choice.') </s> remove         'invalid': _('`{input}` is not a valid boolean.')
 </s> add         'invalid': _('"{input}" is not a valid boolean.') </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}".') </s> remove msgid "Expected a list of items but got type `{input_type}`."
 </s> add msgid "Expected a list of items but got type \"{input_type}\"."
# raise serializers.ValidationError('Value was invalid')
  # under `serializers`, in order to minimize potential confusion with Django's
  # built in `ValidationError`. For example:
  #
  # from rest_framework import serializers
# raise serializers.ValidationError('Value was invalid')
  
  class ValidationError(APIException):
      status_code = status.HTTP_400_BAD_REQUEST
  
      def __init__(self, detail):
keep keep keep keep replace keep keep keep keep keep
 swap backticks for double quotes 
rest_framework/exceptions.py