Opened 18 years ago
Closed 18 years ago
#3131 closed defect (duplicate)
[patch] MultipleChoiceFields fail to validate for newforms
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Validation fails when using the SelectMultiple widgets (the default) because value_from_datadict always returns a single value instead of a list.
Attachments (1)
Change History (5)
by , 18 years ago
Attachment: | select-multiple.diff added |
---|
comment:1 by , 18 years ago
Summary: | MultipleChoiceFields fail to validate for newforms → [patch] MultipleChoiceFields fail to validate for newforms |
---|
comment:2 by , 18 years ago
I confirm this, had same problem with MultipleChoiceField, patch fixes it.
comment:3 by , 18 years ago
Hi Ben, I tested your patch !
It works with QueryDict and MultiValueDict but doesn't work with normal dict.
A couple of regression test is failing.
In #3114 there is a patch that fixes the problem and passes all tests.
It passes the tests attached in #3129 too.
I suggest you to close this one as duplicate of #3114.
comment:4 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Duplicate of #3114, which has been fixed.
patch