Fix AttributeError: 'SimpleViewClass has no attribute 'portal_membership'