mjumbewu / django-rest-framework-csv

CSV Tools for Django REST Framework
BSD 2-Clause "Simplified" License
364 stars 89 forks source link

WIP: Fix parsing of CSV POST in Python3 #47

Open Symmetric opened 8 years ago

Symmetric commented 8 years ago

In Python3, the input data is a byte array, which is not a valid input for the csv.reader class.

Add a wrapper generator to the preprocess_stream() function to decode the bytes into a string.