(self, domain)
return count > 0
Returns True if this backend has been shared with domain and domain
        has accepted the invitation.
Returns True if this backend has been shared with domain and domain
        has accepted the invitation.
Returns True if this backend has been shared with domain and domain has accepted the invitation .
def domain_is_shared(self, domain):
        """
        Returns True if this backend has been shared with domain and domain
        has accepted the invitation.
        """
        count = self.mobilebackendinvitation_set.filter(domain=domain, accepted=True).count()
        return count > 0
def domain_is_shared ( self , domain ) : count = self . mobilebackendinvitation_set . filter ( domain = domain , accepted = True ) . count ( ) return count > 0