#NEWLINE# def get_queryset( self , request , params ) : #NEWLINE# #INDENT# tree = trees [ app_name [ 'tree' ] ] #NEWLINE# q = Q ( ) #NEWLINE# for ( app_name , model_name ) in tree . _models : #NEWLINE# #INDENT# q |= Q ( app_name = app_name , model_name = model_name ) #NEWLINE# #UNINDENT# queryset = self . model . objects . filter ( q ) #NEWLINE# if ( params . get ( 'unpublished' ) and can_change_field ( request . user ) ) : #NEWLINE# #INDENT# return queryset #NEWLINE# #UNINDENT# return queryset . published ( user = request . user )