from rest_framework.generics import (
    ListAPIView,
    CreateAPIView,
    DestroyAPIView,
    UpdateAPIView
)

from booknview.models import Hotels
from .serializers import HotelSerializer

class HotelListView(ListAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

class HotelCreate(CreateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

class HotelDelete(DestroyAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

class HotelUpdate(UpdateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

bf2336f2bc93cdd3f2dd1e7832df306bca02ecf4
<mask token>


class HotelCreate(CreateAPIView):
    <mask token>
    <mask token>


class HotelDelete(DestroyAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelUpdate(UpdateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

<mask token>


class HotelListView(ListAPIView):
    <mask token>
    <mask token>


class HotelCreate(CreateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelDelete(DestroyAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelUpdate(UpdateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

<mask token>


class HotelListView(ListAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelCreate(CreateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelDelete(DestroyAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelUpdate(UpdateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

from rest_framework.generics import ListAPIView, CreateAPIView, DestroyAPIView, UpdateAPIView
from booknview.models import Hotels
from .serializers import HotelSerializer


class HotelListView(ListAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelCreate(CreateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelDelete(DestroyAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer


class HotelUpdate(UpdateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

from rest_framework.generics import (
    ListAPIView,
    CreateAPIView,
    DestroyAPIView,
    UpdateAPIView
)

from booknview.models import Hotels
from .serializers import HotelSerializer

class HotelListView(ListAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

class HotelCreate(CreateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

class HotelDelete(DestroyAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer

class HotelUpdate(UpdateAPIView):
    queryset = Hotels.objects.all()
    serializer_class = HotelSerializer
