From 1551c1bdf26c6fed58df27a2c708bf6524072ab6 Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 3 Sep 2025 06:28:35 +0200 Subject: [PATCH] fix: correctly filter for adoption notices --- src/fellchensammlung/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fellchensammlung/api/views.py b/src/fellchensammlung/api/views.py index be12998..03ebdcd 100644 --- a/src/fellchensammlung/api/views.py +++ b/src/fellchensammlung/api/views.py @@ -374,7 +374,7 @@ class LocationApiView(APIView): class AdoptionNoticeGeoJSONView(ListAPIView): queryset = AdoptionNotice.objects.select_related('location').filter(location__isnull=False).filter( - adoption_notice_status__in=AdoptionNoticeStatusChoices.Active.choices) + adoption_notice_status__in=AdoptionNoticeStatusChoices.Active.values) serializer_class = AdoptionNoticeGeoJSONSerializer renderer_classes = [GeoJSONRenderer]