def set_revision_links(sciobj_model, obsoletes_pid=None, obsoleted_by_pid=None):
    if obsoletes_pid:
        sciobj_model.obsoletes = d1_gmn.app.did.get_or_create_did(obsoletes_pid)
        _set_revision_reverse(sciobj_model.pid.did, obsoletes_pid, is_obsoletes=False)
    if obsoleted_by_pid:
        sciobj_model.obsoleted_by = d1_gmn.app.did.get_or_create_did(obsoleted_by_pid)
        _set_revision_reverse(sciobj_model.pid.did, obsoleted_by_pid, is_obsoletes=True)
    sciobj_model.save()