id field is not serialized when performing POST method in django

后端 未结 0 613
傲寒
傲寒 2020-11-22 02:25

I have a model which has 3 simple fields. And a serializer to serialize its data. All works fine with GET method. But when I do a POST request, the id of newly created objec

相关标签:
回答
  • 消灭零回复
提交回复
热议问题