Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dimasciput committed Jul 28, 2023
1 parent 82d99b4 commit b9de0d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bims/models/location_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ def get_geometry(self):
geometry = None
validation_error = ValidationError('Only one geometry allowed.')

if (
self.geometry_point and
self.location_type.allowed_geometry == 'POINT'
):
return self.geometry_point

if self.geometry_polygon:
if geometry:
raise validation_error
Expand Down

0 comments on commit b9de0d1

Please sign in to comment.