From 5c2dcf86b7a0f18b5d20e6b92ddfe76df9299ba3 Mon Sep 17 00:00:00 2001 From: through-your-tears Date: Sun, 7 Apr 2024 01:12:01 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D1=8B=D0=B4=D0=B0=D1=87=D0=B0=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D1=82=D0=BE=D1=87=D0=BA=D0=B0=D0=BC=20=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BA=D0=B0=D1=80=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/organizations/urls.py | 3 ++- src/organizations/views.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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):