Repository navigation
Preserve ordering in MultipleChoiceField - #9735
Conversation
auvipy
left a comment
There was a problem hiding this comment.
please also add unit tests to verify this and make the CI green
I’ve added the tests and the CI is green now. |
browniebroke
left a comment
There was a problem hiding this comment.
Seems sensible to me 👍🏻
However, it will have to wait for 3.17 as I see this as potentially disruptive for some downstream users. Left a small suggestion
Good point — waiting for 3.17 sounds like the right call. Appreciate the suggestion! |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
MultipleChoiceField
* 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>
This modification has the following advantages: