`request.post_vars()` cannot handle multiple values for a key
simonw opened this issue · 1 comments
simonw commented
datasette/datasette/utils/asgi.py
Lines 138 to 140 in 832f76c
Datasette GET requests often use ?_facet=category&_facet=size
- but right now there's no neat way to handle that with POST data, since this code reduces any multiple values to just one.
This came up while working with <select multiple>
(enhanced using Choices.js) in:
simonw commented
Fixing this may be as simple as returning a MultiParams
instead:
datasette/datasette/utils/asgi.py
Lines 120 to 122 in 832f76c
That should behave like a regular dictionary so it's possible it won't break existing plugins?