'Helper method to open atomic blocks for multiple databases'

@classmethod
def _enter_atomics(cls):

    atomics = {}
    for db_name in cls._databases_names():
        atomics[db_name] = transaction.atomic(using=db_name)
        atomics[db_name].__enter__()
    return atomics
