(self, domain, slug=None, has_grants=False)
return query
:param domain: Domain to get registries for
        :param slug: (optional) Filter registries by slug
        :param has_grants: (optional) Set to 'True' to only include registries for which the domain has grants
:param domain: Domain to get registries for
        :param slug: (optional) Filter registries by slug
        :param has_grants: (optional) Set to 'True' to only include registries for which the domain has grants
: param domain : Domain to get registries for : param slug : ( optional ) Filter registries by slug : param has_grants : ( optional ) Set to True to only include registries for which the domain has grants
def accessible_to_domain(self, domain, slug=None, has_grants=False):
        """
        :param domain: Domain to get registries for
        :param slug: (optional) Filter registries by slug
        :param has_grants: (optional) Set to 'True' to only include registries for which the domain has grants
        """
        query = (
            self.filter(is_active=True)
            .filter(
                invitations__domain=domain,
                invitations__status=RegistryInvitation.STATUS_ACCEPTED,
            )
        )
        if slug:
            query = query.filter(slug=slug)
        if has_grants:
            query = query.filter(grants__to_domains__contains=[domain])
        return query
def accessible_to_domain ( self , domain , slug = None , has_grants = False ) : query = ( self . filter ( is_active = True ) . filter ( invitations__domain = domain , invitations__status = RegistryInvitation . STATUS_ACCEPTED , ) ) if slug : query = query . filter ( slug = slug ) if has_grants : query = query . filter ( grants__to_domains__contains = [ domain ] ) return query