Fix CSV export hidden form fields, closes #393

This commit is contained in:
Simon Willison 2019-01-02 18:43:56 -08:00
commit 996e8822d2
3 changed files with 14 additions and 11 deletions

View file

@ -464,7 +464,11 @@ class BaseView(RenderMixin):
}),
"url_csv": url_csv,
"url_csv_path": url_csv_path,
"url_csv_args": url_csv_args,
"url_csv_hidden_args": [
(key, value)
for key, value in urllib.parse.parse_qsl(request.query_string)
if key not in ("_labels", "_facet", "_size")
] + [("_size", "max")],
"datasette_version": __version__,
"config": self.ds.config_dict(),
}