Skip to content

Commit

Permalink
Merge pull request #1695 from AjayVishnuE/dev
Browse files Browse the repository at this point in the history
org_count_error fix
  • Loading branch information
Aashish Vinu authored Dec 2, 2023
2 parents 28505ed + 948e7c6 commit 99bea00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dashboard/affiliation/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()



Expand Down

0 comments on commit 99bea00

Please sign in to comment.