'Return True if this user is in this group with status PENDING or
there is a flag marking the profile ready for a renewal'

def has_pending_member(self, userprofile):

    return self.groupmembership_set.filter(userprofile=userprofile).filter((Q(status=GroupMembership.PENDING) | Q(needs_renewal=True))).exists()
