Skip to content

Commit 33c9644

Browse files
authored
Merge pull request #99 from CorneiZeR/main
fix pagination issue
2 parents 48b09e5 + e338248 commit 33c9644

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class MyExampleViewSet(XLSXFileMixin, ReadOnlyModelViewSet):
5454
serializer_class = MyExampleSerializer
5555
renderer_classes = (XLSXRenderer,)
5656
filename = 'my_export.xlsx'
57+
pagination_class = None # if you have custom pagination, you need to set this to None
5758
```
5859

5960
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.

0 commit comments

Comments
 (0)