tickets: 1130
This data as json
id | created | changetime | last_pulled_from_trac | stage | status | component | type | severity | version | resolution | summary | description | owner | reporter | keywords | easy | has_patch | needs_better_patch | needs_tests | needs_docs | ui_ux |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1130 | 2005-12-28 19:21:51 | 2012-05-11 14:17:03 | 2022-03-06 03:22:32.480273 | Unreviewed | closed | Core (Other) | New feature | normal | dev | wontfix | request.POST["key"] returns only the last value of a list | If I submit a list of inputs with the same name (as a checkboxes list) or request something like !http://myserver/path?key=a&key=b&key=c I get strange things: {{{ print request.POST print request.POST["key"] print dict(request.POST)["key"] }}} results: {{{ {'key': ['a', 'b', 'c']} c ['a', 'b', 'c'] }}} I think request.POST["key"] should return the same as dict(request.POST)["key"]. The same with GET. Am I missing something? I'm using rev. [1785] and the built-in Django server. | adrian | elcio@elcio.com.br | 0 | 0 | 0 | 0 | 0 | 0 |