(self, domain_qs, allow_enterprise=False)
return self._is_member_of(domain, allow_enterprise)
Takes either a domain name or a domain object and returns whether the user is part of that domain
Takes either a domain name or a domain object and returns whether the user is part of that domain
Takes either a domain name or a domain object and returns whether the user is part of that domain
def is_member_of(self, domain_qs, allow_enterprise=False):
        """
        Takes either a domain name or a domain object and returns whether the user is part of that domain
        """

        try:
            domain = domain_qs.name
        except Exception:
            domain = domain_qs
        return self._is_member_of(domain, allow_enterprise)
def is_member_of ( self , domain_qs , allow_enterprise = False ) : try : domain = domain_qs . name except Exception : domain = domain_qs return self . _is_member_of ( domain , allow_enterprise )