def obj_update(self, bundle, request=None, **kwargs):

        # pull the productversions off, you can't edit them from here
        productversions = bundle.data.pop("productversions", [])
        bundle.data["productversions"] = []

        updated_bundle = super(ProductResource, self).obj_update(
            bundle=bundle, request=request, **kwargs)

        # create the productversions
        for pv in productversions:
            ProductVersion.objects.get_or_create(
                product=updated_bundle.obj, **pv)

        return updated_bundle
Oversee updating of product.
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/core/api.py/ProductResource.obj_update