New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request.post_vars() method obliterates form keys with multiple values #2205
Comments
I found this problem while trying to use WTForms with this pattern: choices = [(col, col) for col in await db.table_columns(table)]
class ConfigForm(Form):
template = TextAreaField("Template")
api_token = PasswordField("OpenAI API token")
columns = MultiCheckboxField('Columns', choices=choices) |
It should return a datasette/datasette/utils/__init__.py Lines 900 to 917 in 452a587
Change needs to be made before 1.0. return MultiParams(urllib.parse.parse_qs(body.decode("utf-8"))) Need to remember why I was using |
That Commit message:
Relevant test: datasette/tests/test_internals_request.py Lines 19 to 27 in 452a587
|
datasette/datasette/utils/asgi.py
Lines 137 to 139 in 452a587
In GET requests you can do
?foo=1&foo=2
- you can do the same in POST requests, but thedict()
call here eliminates those duplicates.You can't even try calling
post_body()
and implement your own custom parsing because of:The text was updated successfully, but these errors were encountered: