django-multiselectfield
django-multiselectfield copied to clipboard
If single choice response is string else it's array
I created a models field with multiselectfield
When I used the data in rest response, if theere is only one selected field the data is passed as string, else it is an array
how to solve this issue?
Attaching screenshots
when only one selected field
when multiple fields are selected
Can you open a pull request that adds a test for this? It's fine if the GitHub Action tests fail, just having a failing test will help.