Open liamdiprose opened 5 years ago
This PR adds the ability to define the CSV column order from within the code Currently, the CSV Parser assumes the first row of CSV data contains the column names.
This PR adds the ability to define the column names from the ViewSet class:
class CSVEndpoint(viewsets.ModelViewSet): serializer_class = CSVSerializer parser_classes = (CSVParser,) csv_header = ("time", "temperature")
There are still a few small things I would like to address before this is merged. Namely
csv_header
Thanks
This PR adds the ability to define the CSV column order from within the code Currently, the CSV Parser assumes the first row of CSV data contains the column names.
This PR adds the ability to define the column names from the ViewSet class:
There are still a few small things I would like to address before this is merged. Namely
csv_header
variable?Thanks