New implementation for RequestParams

- no longer subclasses dict
- request.args[key] now returns first item, not all items
- removed request.raw_args entirely

Closes #774
This commit is contained in:
Simon Willison 2020-05-29 16:18:01 -07:00
commit 81be31322a
6 changed files with 49 additions and 16 deletions

View file

@ -32,7 +32,7 @@ def json_renderer(args, data, view_name):
# Handle the _json= parameter which may modify data["rows"]
json_cols = []
if "_json" in args:
json_cols = args["_json"]
json_cols = args.getlist("_json")
if json_cols and "rows" in data and "columns" in data:
data["rows"] = convert_specific_columns_to_json(
data["rows"], data["columns"], json_cols