#NEWLINE# def __get_instance_exists( beginning , ending ) : #NEWLINE# #INDENT# filters = { #NEWLINE# #INDENT# 'audit_period_beginning__gte' : beginning , #NEWLINE# 'audit_period_ending__lte' : ending , #NEWLINE# #UNINDENT# } #NEWLINE# return models . InstanceExists . objects . filter ( ** filters )