#NEWLINE# @ staticmethod #NEWLINE# def response_data_cleanup( domain ) : #NEWLINE# #INDENT# '\n        Any active automatic case update rules should be deactivated.\n        ' #NEWLINE# rule_count = AutomaticUpdateRule . objects . filter ( domain = domain . name , deleted = False , active = True ) . count ( ) #NEWLINE# if ( domain > 0 ) : #NEWLINE# #INDENT# return _fmt_alert ( ( ungettext ( 'You have %(rule_count)d automatic case update rule configured in your project. If you select this plan, this rule will be deactivated.' , 'You have %(rule_count)d automatic case update rules configured in your project. If you select this plan, these rules will be deactivated.' , rule_count ) % { #NEWLINE# #INDENT# 'rule_count' : rule_count , #NEWLINE# #UNINDENT# } ) )