(cls, owner_id)
Returns all phone numbers belonging to the given contact.
Returns all phone numbers belonging to the given contact.
Returns all phone numbers belonging to the given contact .
def by_owner_id(cls, owner_id):
        """
        Returns all phone numbers belonging to the given contact.
        """
        with CriticalSection(['PhoneNumber-CacheAccessor-by_owner_id-%s' % owner_id]):
            return list(cls.objects.filter(owner_id=owner_id))
def by_owner_id ( cls , owner_id ) : with CriticalSection ( [ 'PhoneNumber-CacheAccessor-by_owner_id-%s' % owner_id ] ) : return list ( cls . objects . filter ( owner_id = owner_id ) )