Skip to content
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

Replacing dict to werkzeug.datastructures.MultiDict for request args in ... #13

Merged
merged 1 commit into from
Apr 3, 2014

Conversation

mkaplenko
Copy link

Support for multiselect, multiple checkboxes with the same name attribute in html. For example: in my first page with some list of users with phone numbers, I has a multiple select input field for filter users by phone numbers. The request args string after filtering looks like: "?phones=1234567&phones=7654321&phones=5673212", but in paginate links href attribute I has only one phone since the python dict type does not support non-unique keys. To solve this problem you can use a MultiDict structure from werkzeug.datastructures instead of the standard dictionary python type.

lixxu added a commit that referenced this pull request Apr 3, 2014
Replacing dict to werkzeug.datastructures.MultiDict for request args in ...
@lixxu lixxu merged commit 9602d06 into lixxu:master Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants