diff --git a/arches/app/models/resource.py b/arches/app/models/resource.py index 6cf2c3f905..b7ddf797be 100644 --- a/arches/app/models/resource.py +++ b/arches/app/models/resource.py @@ -770,7 +770,7 @@ def get_related_resources( user=None, resourceinstance_graphid=None, graphs=None, - includeRRCount=True, + include_rr_count=True, ): """ Returns an object that lists the related resources, the relationship types, and a reference to the current resource @@ -929,7 +929,7 @@ def get_relations( if related_resources: for resource in related_resources["docs"]: if resource["found"]: - if includeRRCount: + if include_rr_count: rel_count = get_relations( resourceinstanceid=resource["_id"], start=0, diff --git a/arches/app/views/api.py b/arches/app/views/api.py index b9bde1328e..5fd27ea848 100644 --- a/arches/app/views/api.py +++ b/arches/app/views/api.py @@ -1300,7 +1300,7 @@ def get(self, request, resourceid): request.GET = get_params related_resources_response = RelatedResourcesView().get( - request, resourceid, includeRRCount=False + request, resourceid, include_rr_count=False ) related_resources = json.loads(related_resources_response.content) diff --git a/arches/app/views/resource.py b/arches/app/views/resource.py index 4e4679de44..719e445eaf 100644 --- a/arches/app/views/resource.py +++ b/arches/app/views/resource.py @@ -1008,7 +1008,7 @@ def parse_relationshiptype_label(relationship): return ret - def get(self, request, resourceid=None, includeRRCount=True): + def get(self, request, resourceid=None, include_rr_count=True): ret = {} if self.action == "get_candidates": @@ -1055,7 +1055,7 @@ def get(self, request, resourceid=None, includeRRCount=True): user=request.user, resourceinstance_graphid=resourceinstance_graphid, graphs=self.graphs, - includeRRCount=includeRRCount, + include_rr_count=include_rr_count, ) ret = self.paginate_related_resources( @@ -1067,7 +1067,7 @@ def get(self, request, resourceid=None, includeRRCount=True): user=request.user, resourceinstance_graphid=resourceinstance_graphid, graphs=self.graphs, - includeRRCount=includeRRCount, + include_rr_count=include_rr_count, ) return JSONResponse(ret)