(self)
Clears the email_domain-related caches of all the email domains
        associated with this IdentityProvider.
Clears the email_domain-related caches of all the email domains
        associated with this IdentityProvider.
Clears the email_domain - related caches of all the email domains associated with this IdentityProvider .
def clear_all_email_domain_caches(self):
        """
        Clears the email_domain-related caches of all the email domains
        associated with this IdentityProvider.
        """
        all_email_domains_for_idp = AuthenticatedEmailDomain.objects.filter(
            identity_provider=self).values_list('email_domain', flat=True)
        for email_domain in all_email_domains_for_idp:
            self.clear_email_domain_caches(email_domain)
def clear_all_email_domain_caches ( self ) : all_email_domains_for_idp = AuthenticatedEmailDomain . objects . filter ( identity_provider = self ) . values_list ( 'email_domain' , flat = True ) for email_domain in all_email_domains_for_idp : self . clear_email_domain_caches ( email_domain )