#NEWLINE# def validate_value( self , value ) : #NEWLINE# #INDENT# if ( ( not isinstance ( value , models . query . QuerySet ) ) or ( self . model != self . to ) ) : #NEWLINE# #INDENT# raise TypeError ( ( "The '%s' attribute can only be set to a %s QuerySet." % ( self . name , self . to . __name__ ) ) )