The Python Oracle

django rest 3.1.1 - one to many serializer with "many" attribute

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind

--

Chapters
00:00 Question
01:57 Accepted answer (Score 3)
02:14 Answer 2 (Score 1)
02:37 Thank you

--

Full question
https://stackoverflow.com/questions/2999...

Answer 1 links:
[planned for 3.1]: http://www.django-rest-framework.org/top...
[3.1 release notes]: http://www.django-rest-framework.org/top.../

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #django #djangorestframework #models #serialization

#avk47



ACCEPTED ANSWER

Score 3


when you remove the ('many=True'), you get an error while trying to post because you have not rewrite the function create, you should rewrite the function create




ANSWER 2

Score 1


Your quote answers your question. The built-in HTML view input forms do not support lists.

It seems that support was planned for 3.1 but I don't see any mention in the 3.1 release notes.