From 5fcd5375c9ba08d04107bff4535b78ce3905d67a Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Tue, 25 Nov 2025 11:49:39 +0330 Subject: [PATCH] fix - assigned to me check by +registerer organization --- apps/product/web/api/v1/serializers/quota_serializers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/product/web/api/v1/serializers/quota_serializers.py b/apps/product/web/api/v1/serializers/quota_serializers.py index 4cd5e35..649dbec 100644 --- a/apps/product/web/api/v1/serializers/quota_serializers.py +++ b/apps/product/web/api/v1/serializers/quota_serializers.py @@ -53,7 +53,9 @@ class QuotaSerializer(serializers.ModelSerializer): "weight": dist.weight, } for dist in instance.distributions_assigned.filter(assigned_organization=org)] - representation['assigned_to_me'] = True if org in assigned_orgs else False + representation['assigned_to_me'] = True if ( + org in assigned_orgs or instance.registerer_organization == org + ) else False # list of assigned organizations that received this quota representation['assigned_organizations'] = [{