【发布时间】:2015-03-16 13:42:07
【问题描述】:
在 Django sweetpie 中,我有来自 Api 的输出。
{
"meta": {
"limit": 1000,
"next": null,
"offset": 0,
"previous": null,
"total_count": 2
},
"objects": [
{},
{}
]
}
我想扩展输出数据。我需要的是在与“对象”数据分开的“对象”旁边添加名为“图像”的新对象数组,如下所示:
{
"meta": {
"limit": 1000,
"next": null,
"offset": 0,
"previous": null,
"total_count": 2
},
"objects": [
{},
{}
],
"images": [
{},
{}
]
}
我如何用 Django 的 sweetpie 来实现它?
【问题讨论】:
标签: django python-2.7 tastypie