From babbfa20319ea70d4306eeb78add0038f75a8689 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 23 Jan 2024 19:45:49 +0545 Subject: [PATCH] Adds django filter backend to feedback labels --- backend/core/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/core/views.py b/backend/core/views.py index 80389981..03f4ffe4 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -192,6 +192,7 @@ class FeedbackLabelViewset(viewsets.ModelViewSet): bbox_filter_field = "geom" filter_backends = ( InBBoxFilter, # it will take bbox like this api/v1/label/?in_bbox=-90,29,-89,35 , + DjangoFilterBackend ) bbox_filter_include_overlapping = True filterset_fields = ["feedback_aoi", "feedback_aoi__training"]