def get_pk_value(self, model):
        return model.get('_id')
Return primary key value from the model instance
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/pymongo/view.py/ModelView.get_pk_value