Добавлена выдача по точкам на карте

main
through-your-tears 9 months ago
parent e08bcca606
commit 5c2dcf86b7

@ -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/<int:id>/organizations/', OrganizationByCategoryListAPIView.as_view()),
path('search/<str:name>/', OrganizationSearchListAPIView.as_view()),
path('categories/', CategoryListAPIView.as_view()),
path('map/', OrganizationMapFilterAPIView.as_view())
# path('upload/', UploadAPIView.as_view())
] + router.urls

@ -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):

Loading…
Cancel
Save