(domain, new_plan_version)
Any active automatic case update rules should be deactivated.
Any active automatic case update rules should be deactivated.
Any active automatic case update rules should be deactivated .
def response_data_cleanup(domain, new_plan_version):
        """
        Any active automatic case update rules should be deactivated.
        """
        rule_count = AutomaticUpdateRule.by_domain(
            domain.name,
            AutomaticUpdateRule.WORKFLOW_CASE_UPDATE,
        ).count()
        if rule_count > 0:
            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
                ) % {
                    'rule_count': rule_count,
                }
            )
def response_data_cleanup ( domain , new_plan_version ) : rule_count = AutomaticUpdateRule . by_domain ( domain . name , AutomaticUpdateRule . WORKFLOW_CASE_UPDATE , ) . count ( ) if rule_count > 0 : 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 ) % { 'rule_count' : rule_count , } )