  
  import pytest
  from django.db import models
  
  from rest_framework import fields, relations, serializers
  from rest_framework.compat import unicode_repr
  from rest_framework.fields import Field
  
  from .models import (
      ForeignKeyTarget, NestedForeignKeySource, NullableForeignKeySource
 
</s> remove             return validators[:]
 </s> add             return list(validators) </s> remove         return validators[:] if validators else []
 </s> add         return list(validators) if validators else [] </s> remove         return self.default_validators[:]
 </s> add         return list(self.default_validators) </s> remove             self.validators = validators[:]
 </s> add             self.validators = list(validators)
from rest_framework import exceptions, fields, relations, serializers
  
  import pytest
  from django.db import models
  
from rest_framework import exceptions, fields, relations, serializers
  from rest_framework.compat import unicode_repr
  from rest_framework.fields import Field
  
  from .models import (
      ForeignKeyTarget, NestedForeignKeySource, NullableForeignKeySource
keep keep keep keep replace keep keep keep keep keep
 Adjusted field `validators` to accept iterables. (#6282)

Closes 6280. 
tests/test_serializer.py