【发布时间】:2014-10-15 23:14:11
【问题描述】:
What is the right™ 方法来设计 DRF 序列化程序,将以下 POST 数据接收到 List 模型:
{
list_name: "friends",
contacts: ["alice", "bob"]
}
并处理嵌套的Contact 对象的创建?此外,假设需要一个额外的步骤将名称转换为大写字母 (['Alice', 'Bob'])。
【问题讨论】:
标签: django django-rest-framework