Skip to content

Commit

Permalink
update vies.py, urls.py
Browse files Browse the repository at this point in the history
  • Loading branch information
9rosLove committed Oct 10, 2023
1 parent 21686a5 commit 202db2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cinema/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
MovieViewSet,
)

cinemahall_list = CinemaHallViewSet.as_view(
cinema_hall_list = CinemaHallViewSet.as_view(
actions={
"get": "list",
"post": "create",
}
)
cinemahall_detail = CinemaHallViewSet.as_view(
cinema_hall_detail = CinemaHallViewSet.as_view(
actions={
"get": "retrieve",
"put": "update",
Expand All @@ -34,9 +34,9 @@
path("genres/<int:pk>/", GenreDetail.as_view(), name="genre-detail"),
path("actors/", ActorList.as_view(), name="actor-list"),
path("actors/<int:pk>/", ActorDetail.as_view(), name="actor-detail"),
path("cinema_halls/", cinemahall_list, name="cinema-hall-list"),
path("cinema_halls/", cinema_hall_list, name="cinema-hall-list"),
path(
"cinema_halls/<int:pk>/", cinemahall_detail, name="cinema-hall-detail"
"cinema_halls/<int:pk>/", cinema_hall_detail, name="cinema-hall-detail"
),
]

Expand Down
3 changes: 2 additions & 1 deletion cinema/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from cinema.serializers import (
MovieSerializer,
GenreSerializer,
ActorSerializer, CinemaHallSerializer,
ActorSerializer,
CinemaHallSerializer
)


Expand Down

0 comments on commit 202db2b

Please sign in to comment.