From f5ad6a6dd9f93569874f1dbb5da73f156dec55b0 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Sun, 7 Apr 2024 07:36:02 +0530 Subject: [PATCH] Fix: Do not permit updating sector through API Signed-off-by: George J Padayatti --- config/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/views.py b/config/views.py index 3853f7a..3252763 100644 --- a/config/views.py +++ b/config/views.py @@ -177,8 +177,6 @@ def put(self, request): datasource.name = data["name"] if data.get("policyUrl"): datasource.policyUrl = data["policyUrl"] - if data.get("sector"): - datasource.sector = data["sector"] # Save the updated DataSource instance datasource.save()