Skip to content

Commit

Permalink
fix pagination issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CorneiZeR committed Oct 14, 2024
1 parent 48b09e5 commit e338248
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 e338248

Please sign in to comment.