def METHOD_NAME(self, request, *args, **kwargs):
    if not self.request.user.is_anonymous:
        try:
            return redirect(self.get_success_url())
        except Exception:
            return redirect(self.success_url)
    return super().METHOD_NAME(request, *args, **kwargs)