From e3382487d99534129cf9d804fe2d575a6796e8a8 Mon Sep 17 00:00:00 2001 From: corneizer Date: Mon, 14 Oct 2024 11:59:27 +0300 Subject: [PATCH] fix pagination issue --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c50a6ea..1561015 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ class MyExampleViewSet(XLSXFileMixin, ReadOnlyModelViewSet): serializer_class = MyExampleSerializer renderer_classes = (XLSXRenderer,) filename = 'my_export.xlsx' + pagination_class = None # if you have custom pagination, you need to set this to None ``` The `XLSXFileMixin` also provides a `get_filename()` method which can be overridden, if you prefer to provide a filename programmatically instead of the `filename` attribute.