def acquire(model, entity):
    identifiers = unique_identifiers_from_entity(model, entity, ignore_pk=True)
    return acquire_identifiers(identifiers, entity.key())
Given a model and entity, this tries to acquire unique marker locks for the instance. If
dataset/ETHPy150Open potatolondon/djangae/djangae/db/constraints.py/acquire