def METHOD_NAME(self, request: "http.HttpRequest", *args, **kwargs) -> "http.HttpResponse":
    if request.htmx:
        # This is an HTMX request and we are only interested in the items list.
        items = self.get_items()
        paginated_items = self.paginate_items(
            items=items,
            page=request.GET.get("page"),
        )
        return self.render_items(request=request, items=paginated_items)
    return super().METHOD_NAME(request, *args, **kwargs)