From aa8e39c25b92c3dcbf79662ae770d20fbfd86fd6 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Mon, 9 Feb 2026 11:00:01 +0330 Subject: [PATCH] fix --> int type id on org filter --- apps/authentication/api/v1/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/api/v1/api.py b/apps/authentication/api/v1/api.py index e6ab230..a330826 100644 --- a/apps/authentication/api/v1/api.py +++ b/apps/authentication/api/v1/api.py @@ -269,7 +269,7 @@ class OrganizationViewSet(BaseViewSet, ModelViewSet, DynamicSearchMixin): # filter by organization type if 'org_type' in param.keys(): - queryset = queryset.filter(type__id=param.get('org_type', 0)) + queryset = queryset.filter(type__id=int(param.get('org_type', 0))) # filter on search if 'search' in param.keys():