#NEWLINE# def fetch_pending( self , deleted ) : #NEWLINE# #INDENT# if deleted : #NEWLINE# #INDENT# return User . deleted_objects . all ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# one_week_ago = ( datetime . datetime . now ( ) - datetime . timedelta ( days = 7 ) ) #NEWLINE# return User . objects . filter ( is_active = False , updated__gt = one_week_ago )