def validate_no_atomic_block(self):
        if self.in_atomic_block:
            raise TransactionManagementError(
                "This is forbidden when an 'atomic' block is active.")
Raise an error if an atomic block is active.
dataset/ETHPy150Open django/django/django/db/backends/base/base.py/BaseDatabaseWrapper.validate_no_atomic_block