Skip to content

Commit

Permalink
Merge pull request #99 from CorneiZeR/main
Browse files Browse the repository at this point in the history
fix pagination issue
  • Loading branch information
FlipperPA authored Oct 14, 2024
2 parents 48b09e5 + e338248 commit 33c9644
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 33c9644

Please sign in to comment.