diff --git a/src/organizations/urls.py b/src/organizations/urls.py index f550e3e..26faf33 100644 --- a/src/organizations/urls.py +++ b/src/organizations/urls.py @@ -1,7 +1,7 @@ from django.urls import path from rest_framework.routers import DefaultRouter -from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView, CategoryListAPIView, UploadAPIView +from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView, CategoryListAPIView, OrganizationMapFilterAPIView, UploadAPIView app_name = "organizations" @@ -11,5 +11,6 @@ urlpatterns = [ path('category//organizations/', OrganizationByCategoryListAPIView.as_view()), path('search//', OrganizationSearchListAPIView.as_view()), path('categories/', CategoryListAPIView.as_view()), + path('map/', OrganizationMapFilterAPIView.as_view()) # path('upload/', UploadAPIView.as_view()) ] + router.urls diff --git a/src/organizations/views.py b/src/organizations/views.py index 6909e5a..8f45679 100644 --- a/src/organizations/views.py +++ b/src/organizations/views.py @@ -61,7 +61,7 @@ class OrganizationSearchListAPIView(ListAPIView): return super().list(request, args, kwargs) -class OrganizationMapFilter(ListAPIView): +class OrganizationMapFilterAPIView(ListAPIView): serializer_class = OrganizationListSerializer def get_queryset(self):