Lists are not currently supported in HTML input

后端 未结 2 853
北海茫月
北海茫月 2021-01-19 02:56

I am using Django REST generic views for my API endpoint. One of the field in my serializer has ManyToMany relationship. I want to show that field into my API endpoint, But

2条回答
  •  清酒与你
    2021-01-19 03:37

    What can I do ?

    Not much since HTML form don't support nested serializers at the moment.

    You could use a non nested relational field in the serializer to work this around or just use regular JSON.

提交回复
热议问题