From f773779c858501e659048ab47919dae16913b87a Mon Sep 17 00:00:00 2001 From: sudan45 Date: Tue, 10 Dec 2024 11:47:47 +0545 Subject: [PATCH] Remove geoarea status change functionality --- apps/geo/mutations.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/geo/mutations.py b/apps/geo/mutations.py index 146477a286..a895781144 100644 --- a/apps/geo/mutations.py +++ b/apps/geo/mutations.py @@ -101,13 +101,6 @@ def mutate(root, info, admin_level_id): ], ok=False) admin_level.delete() # check boundsfile is empty or not in Region - region = admin_level.region - if region.adminlevel_set.filter(bounds_file__isnull=True).count() == 0: - region.status = Region.Status.COMPLETED - region.save(update_fields=['status']) - return DeleteAdminLevel(errors=None, ok=True) - region.status = Region.Status.FAILED - region.save(update_fields=['status']) return DeleteAdminLevel(errors=None, ok=True)