                  fields = ('id', 'slug', 'published')
  
          serializer = TestSerializer()
          expected = dedent("""
              TestSerializer(validators=[<UniqueForDateValidator(queryset=HiddenFieldUniqueForDateModel.objects.all(), field='slug', date_field='published')>]):
                  id = IntegerField(label='ID', read_only=True)
                  slug = CharField(max_length=100)
                  published = DateTimeField(default=CreateOnlyDefault(<function now>), read_only=True)
          """)
          assert repr(serializer) == expected
 
</s> remove             TestSerializer(validators=[<UniqueForDateValidator(queryset=HiddenFieldUniqueForDateModel.objects.all(), field='slug', date_field='published')>]):
 </s> add             TestSerializer(): </s> remove             UniqueForDateSerializer(validators=[<UniqueForDateValidator(queryset=UniqueForDateModel.objects.all(), field='slug', date_field='published')>]):
 </s> add             UniqueForDateSerializer(): </s> remove             UniquenessTogetherSerializer(validators=[<UniqueTogetherValidator(queryset=UniquenessTogetherModel.objects.all(), fields=('race_name', 'position'))>]):
 </s> add             UniquenessTogetherSerializer():
            TestSerializer():
                  fields = ('id', 'slug', 'published')
  
          serializer = TestSerializer()
          expected = dedent("""
            TestSerializer():
                  id = IntegerField(label='ID', read_only=True)
                  slug = CharField(max_length=100)
                  published = DateTimeField(default=CreateOnlyDefault(<function now>), read_only=True)
          """)
          assert repr(serializer) == expected
keep keep keep keep replace keep keep keep keep keep
 Lazy loading of fields and validators. Closes #1963. 
tests/test_validators.py