Skip to content
Snippets Groups Projects
Verified Commit 748e8f9e authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

refactor: rename APIDayScheduleViewSet -> APIProgramViewSet

parent 4a4a8b3a
No related branches found
No related tags found
No related merge requests found
...@@ -147,7 +147,7 @@ logger = logging.getLogger(__name__) ...@@ -147,7 +147,7 @@ logger = logging.getLogger(__name__)
], ],
), ),
) )
class APIDayScheduleViewSet( class APIProgramViewSet(
mixins.ListModelMixin, mixins.ListModelMixin,
viewsets.GenericViewSet, viewsets.GenericViewSet,
): ):
......
...@@ -27,7 +27,6 @@ from django.contrib import admin ...@@ -27,7 +27,6 @@ from django.contrib import admin
from django.urls import include, path from django.urls import include, path
from program.views import ( from program.views import (
APICategoryViewSet, APICategoryViewSet,
APIDayScheduleViewSet,
APIFundingCategoryViewSet, APIFundingCategoryViewSet,
APIHostViewSet, APIHostViewSet,
APIImageViewSet, APIImageViewSet,
...@@ -37,6 +36,7 @@ from program.views import ( ...@@ -37,6 +36,7 @@ from program.views import (
APIMusicFocusViewSet, APIMusicFocusViewSet,
APINoteViewSet, APINoteViewSet,
APIPlayoutViewSet, APIPlayoutViewSet,
APIProgramViewSet,
APIRadioSettingsViewSet, APIRadioSettingsViewSet,
APIRRuleViewSet, APIRRuleViewSet,
APIScheduleViewSet, APIScheduleViewSet,
...@@ -75,7 +75,7 @@ urlpatterns = [ ...@@ -75,7 +75,7 @@ urlpatterns = [
path("api/v1/", include(router.urls)), path("api/v1/", include(router.urls)),
path( path(
"api/v1/program/<int:year>/<int:month>/<int:day>/", "api/v1/program/<int:year>/<int:month>/<int:day>/",
APIDayScheduleViewSet.as_view({"get": "list"}), APIProgramViewSet.as_view({"get": "list"}),
name="program", name="program",
), ),
path("api/v1/schema/", SpectacularAPIView.as_view(), name="schema"), path("api/v1/schema/", SpectacularAPIView.as_view(), name="schema"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment