def _get_csv_content_as_list_and_file_info(self, request): file_bytes, filename = self._get_file_bytes_and_name(request) return CsvSerializer.deserialize(file_bytes), filename, file_bytes
def render(self, data, accepted_media_type=None, renderer_context=None): self._add_filename_to_response(renderer_context) return CsvSerializer.serialize(data, self.separator)