Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- r = ListResource()
- lists = r.obj_get_list(request)
- lists_json = []
- for list in lists:
- bundle = r.build_bundle(obj=list, request=request)
- lists_json.append(r.serialize(None, r.full_dehydrate(bundle), 'application/json'))
Add Comment
Please, Sign In to add comment