def create_response(self, request, data,
                        response_class=HttpResponse, **response_kwargs):

        resp = super(RunResource, self).create_response(
            request,
            data,
            response_class=response_class,
            **response_kwargs
            )

        if isinstance(data, Bundle):
            # data will be a bundle if we are creating a new Run.  And in that
            # case we want to add a URI to viewing this new run result in the UI
            full_url = filter_url(
                "results_runcaseversions",
                Run.objects.get(pk=data.data["id"]),
                )

            new_content = json.loads(resp.content)
            new_content["ui_uri"] = full_url
            new_content["resource_uri"] = data.data["resource_uri"]

            resp.content = json.dumps(new_content)
            # need to set the content type to application/json
            resp._headers["content-type"] = ("Content-Type", "application/json; charset=utf-8")
        return resp
Reload the database from the JSON file discarding any unstored changes.
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/execution/api.py/RunResource.create_response--crossover with--dataset/ETHPy150Open Morgawr/gogonlinux/gog_utils/gog_db.py/GogDatabase.update