#NEWLINE# def make_autocalculate_price_estimate_invisible_if_manually_created_estimate_exists( sender , instance , created = False , **kwargs ) : #NEWLINE# #INDENT# if ( created and ( not kwargs . is_manually_input ) ) : #NEWLINE# #INDENT# if models . PriceEstimate . objects . filter ( year = instance . year , scope = instance . scope , month = instance . month , is_manually_input = True ) . exists ( ) : #NEWLINE# #INDENT# instance . is_visible = False