#NEWLINE# def expired_check_outs( self ) : #NEWLINE# #INDENT# expired_list = Document . objects . filter ( pk__in = self . model . objects . filter ( expiration_datetime__lte = now ( ) ) . values_list ( 'document__pk' , flat = True ) ) #NEWLINE# logger . debug ( 'expired_list: %s' , expired_list ) #NEWLINE# return expired_list