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__)
],
),
)
class APIDayScheduleViewSet(
class APIProgramViewSet(
mixins.ListModelMixin,
viewsets.GenericViewSet,
):
......
......@@ -27,7 +27,6 @@ from django.contrib import admin
from django.urls import include, path
from program.views import (
APICategoryViewSet,
APIDayScheduleViewSet,
APIFundingCategoryViewSet,
APIHostViewSet,
APIImageViewSet,
......@@ -37,6 +36,7 @@ from program.views import (
APIMusicFocusViewSet,
APINoteViewSet,
APIPlayoutViewSet,
APIProgramViewSet,
APIRadioSettingsViewSet,
APIRRuleViewSet,
APIScheduleViewSet,
......@@ -75,7 +75,7 @@ urlpatterns = [
path("api/v1/", include(router.urls)),
path(
"api/v1/program/<int:year>/<int:month>/<int:day>/",
APIDayScheduleViewSet.as_view({"get": "list"}),
APIProgramViewSet.as_view({"get": "list"}),
name="program",
),
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