You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: MultipleChoiceField use ordered sort
(cherry picked from commit 8436483)
* test: fix unit tests
(cherry picked from commit 6428ac4)
* test: test TestMultipleChoiceField can json serializable
(cherry picked from commit 12908b1)
* test: fix unit test
(cherry picked from commit 73a709c)
* minor: rest old formatting
* fix: using pytest.fail to test
* Update test_fields.py
* Update test_fields.py
* Update test_fields.py
* test: add test cases
* docs: update docs
* Update docs/api-guide/fields.md
* Skip inner list allocation
* Fix punctuation
---------
Co-authored-by: Asif Saif Uddin {"Auvi":"অভি"} <auvipy@gmail.com>
Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
Copy file name to clipboardExpand all lines: docs/api-guide/fields.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -417,7 +417,7 @@ Both the `allow_blank` and `allow_null` are valid options on `ChoiceField`, alth
417
417
418
418
## MultipleChoiceField
419
419
420
-
A field that can accept a set of zero, one or many values, chosen from a limited set of choices. Takes a single mandatory argument. `to_internal_value` returns a `set` containing the selected values.
420
+
A field that can accept a list of zero, one or many values, chosen from a limited set of choices. Takes a single mandatory argument. `to_internal_value` returns a `list` containing the selected values, deduplicated.
0 commit comments