

@contextmanager
def _create_revision(self, request):
    with transaction.atomic(), self.revision_context_manager.create_revision():
        self.revision_context_manager.set_user(request.user)
        self.revision_context_manager.set_ignore_duplicates(self.ignore_duplicate_revisions)
        (yield)

dataset/ETHPy150Open etianen/django-reversion/src/reversion/admin.py VersionAdmin._create_revision/original