The Python Oracle

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

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Popsicle Puzzles

--

Chapters
00:00 Django Rest 3.1.1 - One To Many Serializer With &Quot;Many&Quot; Attribute
01:26 Answer 1 Score 1
01:43 Accepted Answer Score 3
01:56 Thank you

--

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

--

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.