Skip to content
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

Output CSV without header #57

Open
VidJa opened this issue Dec 23, 2016 · 2 comments
Open

Output CSV without header #57

VidJa opened this issue Dec 23, 2016 · 2 comments

Comments

@VidJa
Copy link

VidJa commented Dec 23, 2016

How do I output CSV without a header, if I make the header None, no data is rendered.

I've tried:

class HeaderlessRenderer(csvrenderer.CSVRenderer):
    header = None

@api_view(['GET'])
@renderer_classes((HeaderlessRenderer))
def infosheet(request, analysisid, **kwargs):
    ....
@mjumbewu
Copy link
Owner

@VidJa There's no configuration options right now to omit the header entirely. I'd be willing to discuss design and perhaps accept a pull request for such a thing, but is stripping out the header row something you can handle on the client side?

@cinarizasyon
Copy link

cinarizasyon commented Oct 12, 2021

@mjumbewu this option should be added. header row needs to be hide when a lot of CSV files merging into each other to not show duplicate header rows.

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

No branches or pull requests

3 participants