def dehydrate(self, bundle):

        pv = bundle.obj.productversion
        bundle.data["productversion_name"] = pv.version
        bundle.data["product_name"] = pv.product.name

        return bundle
Add some convenience fields to the return JSON.
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/execution/api.py/RunResource.dehydrate