(self, domain)
return Subscription.visible_objects.filter(
            account=self.owner,
            is_active=True,
            subscriber__domain=domain,
        ).exists()
Checks whether the given Domain is an Active Member of the current
        Identity Provider.

        An "Active Member" is defined by having an active Subscription that
        belongs to the BillingAccount owner of this IdentityProvider.

        :param domain: String (the Domain name)
        :return: Boolean (True if Domain is an Active Member)
Checks whether the given Domain is an Active Member of the current
        Identity Provider.
Checks whether the given Domain is an Active Member of the current Identity Provider .
def is_domain_an_active_member(self, domain):
        """
        Checks whether the given Domain is an Active Member of the current
        Identity Provider.

        An "Active Member" is defined by having an active Subscription that
        belongs to the BillingAccount owner of this IdentityProvider.

        :param domain: String (the Domain name)
        :return: Boolean (True if Domain is an Active Member)
        """
        return Subscription.visible_objects.filter(
            account=self.owner,
            is_active=True,
            subscriber__domain=domain,
        ).exists()
def is_domain_an_active_member ( self , domain ) : return Subscription . visible_objects . filter ( account = self . owner , is_active = True , subscriber__domain = domain , ) . exists ( )