(domain, new_plan_version)
return _fmt_alert(
            ungettext(
                "You have %(num_apps)d application that will lose Web Apps "
                "access if you select this plan.",
                "You have %(num_apps)d applications that will lose Web Apps "
                "access if you select this plan.",
                num_apps
            ) % {
                'num_apps': num_apps,
            },
            [
                format_html(
                    '<a href="{}">{}</a>',
                    reverse('view_app', args=[domain.name, app['_id']]),
                    app['name']
                ) for app in cloudcare_enabled_apps
            ],
        )
CloudCare enabled apps will have cloudcare_enabled set to false on downgrade.
CloudCare enabled apps will have cloudcare_enabled set to false on downgrade.
CloudCare enabled apps will have cloudcare_enabled set to false on downgrade .
def response_cloudcare(domain, new_plan_version):
        """
        CloudCare enabled apps will have cloudcare_enabled set to false on downgrade.
        """
        cloudcare_enabled_apps = get_cloudcare_apps(domain.name)
        if not cloudcare_enabled_apps:
            return None

        num_apps = len(cloudcare_enabled_apps)
        return _fmt_alert(
            ungettext(
                "You have %(num_apps)d application that will lose Web Apps "
                "access if you select this plan.",
                "You have %(num_apps)d applications that will lose Web Apps "
                "access if you select this plan.",
                num_apps
            ) % {
                'num_apps': num_apps,
            },
            [
                format_html(
                    '<a href="{}">{}</a>',
                    reverse('view_app', args=[domain.name, app['_id']]),
                    app['name']
                ) for app in cloudcare_enabled_apps
            ],
        )
def response_cloudcare ( domain , new_plan_version ) : cloudcare_enabled_apps = get_cloudcare_apps ( domain . name ) if not cloudcare_enabled_apps : return None num_apps = len ( cloudcare_enabled_apps ) return _fmt_alert ( ungettext ( "You have %(num_apps)d application that will lose Web Apps " "access if you select this plan." , "You have %(num_apps)d applications that will lose Web Apps " "access if you select this plan." , num_apps ) % { 'num_apps' : num_apps , } , [ format_html ( '<a href="{}">{}</a>' , reverse ( 'view_app' , args = [ domain . name , app [ '_id' ] ] ) , app [ 'name' ] ) for app in cloudcare_enabled_apps ] , )