MultipleChoiceField and default

44 views
Skip to first unread message

Rui Da-Costa

unread,
Feb 18, 2021, 5:25:52 PM2/18/21
to Django REST framework
Hi All
Is it expected that the default attribute on a MultipleChoiceField is obeyed?:

https://stackoverflow.com/questions/66252556/in-djangorestframework-is-it-expected-that-a-multiplechoicefield-default-attrib

The code never seems to get hit when I use it in a request serializer, and using a scalar also doesn't work. I'm presuming this is either a bug with DRF or a bad expectation on my part.


Thanks in advance,

Rui


Reply all
Reply to author
Forward
0 new messages