From c1efafe1efd21a64f0521cc1792b45d56f4e9e01 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 25 Oct 2024 12:11:49 +0300 Subject: [PATCH] Added fix to geolocation validation (Removed constituency in geolocation validation) --- mfl_gis/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mfl_gis/models.py b/mfl_gis/models.py index 47b8efb2..72637777 100755 --- a/mfl_gis/models.py +++ b/mfl_gis/models.py @@ -208,15 +208,15 @@ def clean(self): areas_passed += 1 - if self.validate_long_and_lat_within_constituency( - self.facility.ward.constituency): - areas_passed += 1 + # if self.validate_long_and_lat_within_constituency( + # self.facility.ward.constituency): + # areas_passed += 1 if self.validate_long_and_lat_within_ward( self.facility.ward): areas_passed += 1 - if areas_passed < 2: + if areas_passed < 1: raise ValidationError({ "coordinates": [ "The coordinates did not validate"