def kv_list(request, kv_class, obj_pk):
    obj, KVKlass = resolve_obj(kv_class, obj_pk)
    kvs = KVKlass.objects.filter(obj=obj)
    ret_kvs = []
    for kv in kvs:
        ret_kvs.append(kv.get_bundle())
    return HttpResponse(
        json.dumps({'success': True, 'kvs': ret_kvs})
    )
GET to:
dataset/ETHPy150Open mozilla/inventory/core/keyvalue/api.py/kv_list