mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Gah, tabs creeped in; never leave your default editor environment. :)
This commit is contained in:
parent
fbfa18096b
commit
36517e5864
|
@ -490,9 +490,9 @@ To avoid having a file streamed without a filename (which the browser will often
|
|||
|
||||
class MyExampleViewSet(XLSXFileMixin, ReadOnlyModelViewSet):
|
||||
queryset = MyExampleModel.objects.all()
|
||||
serializer_class = MyExampleSerializer
|
||||
renderer_classes = (XLSXRenderer,)
|
||||
filename = 'my_export.xlsx'
|
||||
serializer_class = MyExampleSerializer
|
||||
renderer_classes = (XLSXRenderer,)
|
||||
filename = 'my_export.xlsx'
|
||||
|
||||
## CSV
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user