Skip to content

LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows

UN-3476 [FIX] Revert atomic wrap on set_user_organization (#1977)

Chandrasekharan Mff50bd1c48a2
diff --git a/backend/account_v2/authentication_controller.py b/backend/account_v2/authentication_controller.py
index d27bb5065..cf1c245f6 100644
--- a/backend/account_v2/authentication_controller.py
+++ b/backend/account_v2/authentication_controller.py
@@ -3,7 +3,6 @@ from typing import Any
from django.conf import settings
from django.contrib.auth import logout as django_logout
-from django.db import transaction
from django.db.utils import IntegrityError
from django.http import HttpRequest
from django.middleware import csrf
@@ -164,7 +163,6 @@ class AuthenticationController:
return response
- @transaction.atomic
def set_user_organization(self, request: Request, organization_id: str) -> Response:
user: User = request.user
new_organization = False