相关疑难解决方法(0)

underscore.js - _.groupBy嵌套属性

Tastypie返回一个数组,包括嵌套资源,如下所示:

data = [

{"adult_price": "123", "child_price": "123", "currency": [{"abbrev": "USD", "id": "1", "name": "US Dollars", "resource_uri": "/api/v1/currency/1/", "symbol": "$"}], "day": [{"day_of_week": "TUE", "id": "2", "resource_uri": "/api/v1/days/2/"}], "description": "Please enter the tour description here", "id": "1", "important": "ex. Please contact us to negotiate a price if you want to book the Fiat for 1 person only.", "location": [{"id": "1", "name": "Dublin", "resource_uri": "/api/v1/location/1/"}], "name": "test dublin", "resource_uri": "/api/v1/tours/1/", "start_time": "23:03:51", "subtitle": "ex. These prices include... but not...", "teenager_student_price": "123", "under_6_price": …
Run Code Online (Sandbox Code Playgroud)

underscore.js tastypie

7
推荐指数
1
解决办法
7623
查看次数

标签 统计

tastypie ×1

underscore.js ×1