#NEWLINE# def get_queryset( self , parent ) : #NEWLINE# #INDENT# queryset = self . resource_adaptor . objects . all ( ) #NEWLINE# queryset = queryset . filter ( ** { #NEWLINE# #INDENT# queryset . ct_field : self . content_type , #NEWLINE# self . ct_fk_field : parent . pk , #NEWLINE# #UNINDENT# } ) #NEWLINE# if ( not self . has_create_permission ( ) ) : #NEWLINE# #INDENT# queryset = queryset . none ( ) #NEWLINE# #UNINDENT# return queryset