You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
430 B
12 lines
430 B
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
|
|
|