Skip to content

Commit

Permalink
Added fix to geolocation validation (Removed constituency in geolocat…
Browse files Browse the repository at this point in the history
…ion validation)
ertush committed Oct 25, 2024
1 parent 685eba6 commit c1efafe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mfl_gis/models.py
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c1efafe

Please sign in to comment.