def get_company_contact(user):
 contact = get_person_contact(user)
 if (not contact):
  return None
 return contact.company_memberships.filter(is_active=True).first()

def get_company_contact ( user ) : contact = get_person_contact ( user ) if ( not contact ) : return None return contact . company_memberships . filter ( is_active = True ) . first ( )
get preferred companycontact of given user .