Skip to content

Add drf-renderer-xlsx package. #6147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 6, 2018
Merged

Add drf-renderer-xlsx package. #6147

merged 2 commits into from
Sep 6, 2018

Conversation

FlipperPA
Copy link
Contributor

Description

This adds the drf-renderer-xlsx package to third-party packages. It allows endpoints to be "rendered" as a spreadsheet using OpenPyXL.

Cheers!


class MyExampleViewSet(XLSXFileMixin, ReadOnlyModelViewSet):
queryset = MyExampleModel.objects.all()
serializer_class = MyExampleSerializer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation looks a little wonky here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies, I was outside my regular editor and tabs crept in! Evil!

@encode encode deleted a comment from codecov-io Aug 28, 2018
@tomchristie tomchristie merged commit bc573d8 into encode:master Sep 6, 2018
@tomchristie
Copy link
Member

👍

@encode encode deleted a comment from codecov-io Sep 6, 2018
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull request Nov 17, 2020
* Add drf-renderer-xlsx package.

* Gah, tabs creeped in; never leave your default editor environment. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants