#NEWLINE# def test_polymorphic___filter_reverse_field( self ) : #NEWLINE# #INDENT# p = ModelUnderRelParent . objects . create ( _private = True , field1 = 'BB' ) #NEWLINE# ModelUnderRelChild . objects . create ( parent = p , _private2 = True ) #NEWLINE# objects = ModelUnderRelParent . objects . filter ( children___private2 = True ) #NEWLINE# self . assertEqual ( len ( objects ) , 1 )