#NEWLINE# def test_doesnt_pollute_model( self ) : #NEWLINE# #INDENT# instance = AnotherUniquenessModel . objects . create ( code = '100' ) #NEWLINE# serializer = AnotherUniquenessSerializer ( instance ) #NEWLINE# self . assertEqual ( AnotherUniquenessModel . _meta . get_field ( 'code' ) . validators , [ ] ) #NEWLINE# serializer . data #NEWLINE# self . assertEqual ( AnotherUniquenessModel . _meta . get_field ( 'code' ) . validators , [ ] )