fix - get_all_child_org on admin account

This commit is contained in:
2025-11-02 11:06:36 +03:30
parent 3b2dc4c522
commit 19e0c29f02
2 changed files with 5 additions and 1 deletions

View File

@@ -372,7 +372,7 @@ class OrganizationViewSet(BaseViewSet, SoftDeleteMixin, ModelViewSet, DynamicSea
# search & filter # search & filter
queryset = self.filter_query( queryset = self.filter_query(
self.get_queryset().filter(id__in={instance.id for instance in child_organizations})) self.get_queryset())
page = self.paginate_queryset(queryset) # paginate queryset page = self.paginate_queryset(queryset) # paginate queryset

View File

@@ -658,3 +658,7 @@ AssertionError: .validate() should return the validated data
[2025-11-02 10:48:20,522] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\core\api.py changed, reloading. [2025-11-02 10:48:20,522] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\core\api.py changed, reloading.
[2025-11-02 10:48:27,576] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader [2025-11-02 10:48:27,576] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
[2025-11-02 10:56:40,429] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\viewsets\quota_api.py changed, reloading. [2025-11-02 10:56:40,429] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\product\web\api\v1\viewsets\quota_api.py changed, reloading.
[2025-11-02 10:56:44,984] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader
[2025-11-02 11:03:32,109] INFO django.server | IP: - | Path: - | "GET /auth/api/v1/organization/child_organizations/ HTTP/1.1" 200 67
[2025-11-02 11:04:44,440] INFO django.utils.autoreload | IP: - | Path: - | D:\Project\Rasaddam_Backend\apps\authentication\api\v1\api.py changed, reloading.
[2025-11-02 11:04:48,112] INFO django.utils.autoreload | IP: - | Path: - | Watching for file changes with StatReloader