From 74ad4069ff73d763ce6362881a346a01912592b6 Mon Sep 17 00:00:00 2001 From: Matthew Northcott Date: Thu, 21 May 2020 16:35:02 +1200 Subject: [PATCH] Fixed AssertionError in filter_bbox --- geonode/base/bbox_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geonode/base/bbox_utils.py b/geonode/base/bbox_utils.py index 69581f087e4..9252dadfe0e 100644 --- a/geonode/base/bbox_utils.py +++ b/geonode/base/bbox_utils.py @@ -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))