add in `self.client = None` here so that both `view` and `client` are always defined.