Skip to content

Commit

Permalink
Fixed AssertionError in filter_bbox
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnorthcott committed Aug 31, 2020
1 parent 5421301 commit 74ad406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/base/bbox_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def filter_bbox(queryset, bbox):
:param bbox: Comma-separated coordinates as "xmin,ymin,xmax,ymax"
"""
assert queryset.model.__class__.__name__ == "Layer"
assert queryset.model.__class__.__name__ == "PolymorphicModelBase"

bbox = bbox.split(',')
bbox = list(map(Decimal, bbox))
Expand Down

0 comments on commit 74ad406

Please sign in to comment.