#NEWLINE# def get_queryset( self , base_qs = None ) : #NEWLINE# #INDENT# 'Return a filtered, ordered queryset for this collection.' #NEWLINE# qs = ( self . model . objects . all ( ) if ( base_qs is None ) else base_qs ) #NEWLINE# if ( not qs . query . order_by ) : #NEWLINE# #INDENT# if ( self . order_by is None ) : #NEWLINE# #INDENT# qs = qs . order_by ( 'pk' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# qs = qs . order_by ( * self . order_by ) #NEWLINE# #UNINDENT# #UNINDENT# if self . qs_filter : #NEWLINE# #INDENT# qs = qs . filter ( self . qs_filter ) #NEWLINE# #UNINDENT# return qs