from rest_framework import viewsets, mixins from update.models import Cinema from update.serializers import CinemaSerializer class CinemaViewSet(mixins.ListModelMixin, mixins.RetrieveModelMixin, mixins.CreateModelMixin, mixins.UpdateModelMixin, mixins.DestroyModelMixin): queryset = Cinema.objects.all() serializer_class = CinemaSerializer