django-rest-framework-csv
django-rest-framework-csv copied to clipboard
CSV Tools for Django REST Framework
Upgrade to these new versions and improve the testing process a bit. Thank you for this package, my client is getting great use from it.
This package is recommended by the official DRf docs: https://www.django-rest-framework.org/api-guide/renderers/#csv I have concerns with the compatibility in the setup.py file stating python 3.5, we now have 3.11. Also there are...
I am getting an error reading the csv data because of BOM character `\ufeff` How can I handle this?
I want to use the CSVRenderer on a ModelViewSet. However, I don't want to display all the fields but only some of them. Is there a way to choose the...
Currently there is only one reference to `CSVParser` and that is in the changelog. It would be nice to have documentation that says that it exists and maybe a usage...
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,...
Hello i created a great mixin, implementing this render, and wanted to share it. this mixins allow to renderer fixed fields (seted on view), all fields (getting in model), dynamic...
Setup: `CSVRenderer.header` is set. For example `renderer.header = ['a', 'b']` And the data contains ``` data = [{ 'a': 1, 'b': [
I run this through a terminal: ``` curl -X POST -d @C://Users/johnecon/Downloads/participants.csv -H "Authorization: Token b6b904232cb4abb86ba3e01e299110df9d4c83a4" -H "Content-Type: text/csv" localhost:8000/api/config ``` This is my view in listening in api/config ```...
Hi, As I understand csv parser removes newline characters here: https://github.com/mjumbewu/django-rest-framework-csv/blob/master/rest_framework_csv/parsers.py#L25-L26 Lets say there a cell in csv where value is something like: ''' Nature Foliage Trees ''' Now we...