def update_model(self, form, model):
        try:
            model.update(form.data)
            self._on_model_change(form, model, False)

            pk = self.get_pk_value(model)
            self.coll.update({'_id': pk}, model)
        except Exception as ex:
            flash(gettext('Failed to update record. %(error)s', error=str(ex)),
                  'error')
            log.exception('Failed to update record.')
            return False
        else:
            self.after_model_change(form, model, False)

        return True
Returns a dict expressing the OXM values.
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/pymongo/view.py/ModelView.update_model--crossover with--dataset/ETHPy150Open osrg/ryu/ryu/ofproto/ofproto_v1_5_parser.py/OFPTableFeaturePropOxmValues.to_jsondict