def download_csv(self, prepared_data): file_name = self.get_file_name(self.request.query_params.get(\'model\'), \'csv\') response = HttpResponse(conten