【发布时间】:2012-08-13 11:13:55
【问题描述】:
我正在试验 Dojo,使用 DataGrid/JsonRestStore 来对抗使用 Django/tastypie 实现的 REST 服务。
似乎 JsonRestStore 期望数据以纯数组的形式到达,而 sweetpie 在包含“模式”和“对象”的结构中返回数据集。
{
"meta": {"limit": 20, "next": null, "offset": 0, "previous": null, "total_count": 1},
"objects": [{...}]
}
所以,我需要以某种方式附加到“对象”部分。
实现这一目标最明智的方法是什么?
- 奥文德
【问题讨论】:
标签: django json rest dojo tastypie