#NEWLINE# def get_user_query_set( self , user ) : #NEWLINE# #INDENT# qs = self . get_query_set ( ) . order_by ( '-sticky' , '-date' ) #NEWLINE# if user . is_staff : #NEWLINE# #INDENT# return qs #NEWLINE# #UNINDENT# if user . is_authenticated ( ) : #NEWLINE# #INDENT# return qs . filter ( ( Q ( private = False ) | ( Q ( private = True ) & Q ( user = user ) ) ) ) #NEWLINE# #UNINDENT# return qs . filter ( private = False )