api: rename slots views (#55208)
This commit is contained in:
parent
eb2f8b8d48
commit
5c945da024
|
@ -40,17 +40,17 @@ urlpatterns = [
|
|||
),
|
||||
url(
|
||||
r'^agenda/(?P<agenda_identifier>[\w-]+)/status/(?P<event_identifier>[\w:-]+)/$',
|
||||
views.slot_status,
|
||||
views.event_status,
|
||||
name='api-event-status',
|
||||
),
|
||||
url(
|
||||
r'^agenda/(?P<agenda_identifier>[\w-]+)/bookings/(?P<event_identifier>[\w:-]+)/$',
|
||||
views.slot_bookings,
|
||||
views.event_bookings,
|
||||
name='api-event-bookings',
|
||||
),
|
||||
url(
|
||||
r'^agenda/(?P<agenda_identifier>[\w-]+)/check/(?P<event_identifier>[\w:-]+)/$',
|
||||
views.slot_check,
|
||||
views.event_check,
|
||||
name='api-event-check',
|
||||
),
|
||||
url(
|
||||
|
|
|
@ -2115,7 +2115,7 @@ class ResizeBooking(APIView):
|
|||
resize_booking = ResizeBooking.as_view()
|
||||
|
||||
|
||||
class SlotStatus(APIView):
|
||||
class EventStatus(APIView):
|
||||
permission_classes = (permissions.IsAuthenticated,)
|
||||
|
||||
def get_object(self, agenda_identifier, event_identifier):
|
||||
|
@ -2147,10 +2147,10 @@ class SlotStatus(APIView):
|
|||
return Response(response)
|
||||
|
||||
|
||||
slot_status = SlotStatus.as_view()
|
||||
event_status = EventStatus.as_view()
|
||||
|
||||
|
||||
class SlotCheck(APIView):
|
||||
class EventCheck(APIView):
|
||||
permission_classes = (permissions.IsAuthenticated,)
|
||||
|
||||
def get_object(self, agenda_identifier, event_identifier):
|
||||
|
@ -2173,10 +2173,10 @@ class SlotCheck(APIView):
|
|||
return Response(response)
|
||||
|
||||
|
||||
slot_check = SlotCheck.as_view()
|
||||
event_check = EventCheck.as_view()
|
||||
|
||||
|
||||
class SlotBookings(APIView):
|
||||
class EventBookings(APIView):
|
||||
permission_classes = (permissions.IsAuthenticated,)
|
||||
|
||||
def get_object(self, agenda_identifier, event_identifier):
|
||||
|
@ -2208,7 +2208,7 @@ class SlotBookings(APIView):
|
|||
return Response(response)
|
||||
|
||||
|
||||
slot_bookings = SlotBookings.as_view()
|
||||
event_bookings = EventBookings.as_view()
|
||||
|
||||
|
||||
class BookingICS(APIView):
|
||||
|
|
Loading…
Reference in New Issue