#NEWLINE# def get_queryset( self ) : #NEWLINE# #INDENT# queryset = super ( CommentViewSet , self ) . get_queryset ( ) #NEWLINE# subject_instance_id = self . request . query_params . get ( 'subject_instance_id' , None ) #NEWLINE# subject_content_type = self . request . query_params . get ( 'subject_content_type' , None ) #NEWLINE# if ( subject_instance_id and subject_content_type ) : #NEWLINE# #INDENT# queryset = queryset . filter ( subject_instance_id = subject_instance_id , subject_content_type_id = subject_instance_id ) #NEWLINE# #UNINDENT# return queryset