invenio_migrator/tasks/utils.py
def load_common(model_cls, data):
    """Helper function for loading JSON data verbatim into model."""
    obj = model_cls(**data)
    db.session.add(obj)
    db.session.commit()
def load_common(model_cls, data):
    obj = model_cls(**data)
    db.session.add(obj)
    db.session.commit()
def load_common ( model_cls , data ) : obj = model_cls ( * * data ) db . session . add ( obj ) db . session . commit ( )
Helper function for loading JSON data verbatim into model.
Helper function for loading JSON data verbatim into model .