From 137e31ff3e91fdc2582338f9f9c6b6bee826961f Mon Sep 17 00:00:00 2001 From: Muhammed Zafar Date: Thu, 28 Dec 2023 00:42:22 +0530 Subject: [PATCH] [MINOR] Some minor changes --- api/dashboard/location/location_views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/dashboard/location/location_views.py b/api/dashboard/location/location_views.py index 4e99f162..5542aab9 100644 --- a/api/dashboard/location/location_views.py +++ b/api/dashboard/location/location_views.py @@ -105,7 +105,7 @@ def get(self, request, state_id=None): request, ["name", "country__name", "created_by__full_name", "updated_by__full_name"], { - "name": "name", + "label": "name", "country": "country__name", "created_by": "created_by__full_name", "created_at": "created_at", @@ -189,7 +189,7 @@ def get(self, request, zone_id=None): "updated_by__full_name", ], { - "name": "name", + "label": "name", "state": "state__name", "country": "state__country__name", "created_by": "created_by__full_name", @@ -276,7 +276,7 @@ def get(self, request, district_id=None): "updated_by__full_name", ], { - "name": "name", + "label": "name", "zone": "zone__name", "state": "zone__state__name", "country": "zone__state__country__name",