From ab1a4de2c69a5d0017be643df18c91a81895c4f7 Mon Sep 17 00:00:00 2001 From: Bram Jans Date: Fri, 24 May 2024 22:16:45 +0200 Subject: [PATCH] IA-3020 Entities page: remove column 'Programme' It comes specifically from WFP, it's not relevant. --- iaso/api/entity.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/iaso/api/entity.py b/iaso/api/entity.py index d645438f36..035d7e102f 100644 --- a/iaso/api/entity.py +++ b/iaso/api/entity.py @@ -385,10 +385,8 @@ def list(self, request: Request, *args, **kwargs): attributes_latitude = attributes.location.y if attributes.location else None # type: ignore attributes_longitude = attributes.location.x if attributes.location else None # type: ignore name = None - program = None if file_content is not None: name = file_content.get("name") - program = file_content.get("program") duplicates = [] # invokes many SQL queries and not needed for map display if not as_location and not is_export: @@ -403,7 +401,6 @@ def list(self, request: Request, *args, **kwargs): "entity_type": entity.entity_type.name, "last_saved_instance": entity.last_saved_instance, "org_unit": attributes_ou, - "program": program, "duplicates": duplicates, "latitude": attributes_latitude, "longitude": attributes_longitude, @@ -430,7 +427,6 @@ def list(self, request: Request, *args, **kwargs): {"title": "Creation Date", "width": 20}, {"title": "HC", "width": 20}, {"title": "Last update", "width": 20}, - {"title": "Program", "width": 20}, ] for col in columns_list: columns.append({"title": col["label"]}) @@ -454,7 +450,6 @@ def get_row(entity: dict, **kwargs): created_at, entity["org_unit"]["name"] if entity["org_unit"] else "", last_saved_instance, - entity["program"], ] for col in columns_list: values.append(entity.get(col["name"]))