Добавлены разные activities для пользователя

main
through-your-tears 9 months ago
parent 2c9ad37bbd
commit 31bff1e49f

@ -1,7 +1,7 @@
from django.urls import path from django.urls import path
from rest_framework.routers import DefaultRouter from rest_framework.routers import DefaultRouter
from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView from .views import OrganizationViewSet, OrganizationSearchListAPIView, OrganizationByCategoryListAPIView, CategoryListAPIView
app_name = "organizations" app_name = "organizations"
@ -10,4 +10,5 @@ router.register('', OrganizationViewSet, 'organizations')
urlpatterns = [ urlpatterns = [
path('category/<int:id>/organizations/', OrganizationByCategoryListAPIView.as_view()), path('category/<int:id>/organizations/', OrganizationByCategoryListAPIView.as_view()),
path('search/<str:name>/', OrganizationSearchListAPIView.as_view()), path('search/<str:name>/', OrganizationSearchListAPIView.as_view()),
path('categories/', CategoryListAPIView.as_view())
] + router.urls ] + router.urls

Loading…
Cancel
Save