You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ class MyExampleViewSet(XLSXFileMixin, ReadOnlyModelViewSet):
54
54
serializer_class = MyExampleSerializer
55
55
renderer_classes = (XLSXRenderer,)
56
56
filename ='my_export.xlsx'
57
+
pagination_class =None# if you have custom pagination, you need to set this to None
57
58
```
58
59
59
60
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