From d3d5d9451be29d70336f3d957054b9a712ee88a1 Mon Sep 17 00:00:00 2001 From: Ajay Vishnu E Date: Sat, 2 Dec 2023 19:22:06 +0530 Subject: [PATCH] org_count_error fix --- api/dashboard/affiliation/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/dashboard/affiliation/serializers.py b/api/dashboard/affiliation/serializers.py index b615bde1..46bd65a2 100644 --- a/api/dashboard/affiliation/serializers.py +++ b/api/dashboard/affiliation/serializers.py @@ -15,7 +15,7 @@ class Meta: fields = ['id','title','organization_count', 'created_by', 'updated_by'] def get_organization_count(self,obj): - return obj.organizations.count() + return obj.organization_affiliation.count()