old_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  from rest_framework import viewsets, filters
  
  from .. import (
      models,
      permissions,
  )
  from ..serializers import (
     hyperlink as serializers
  )
  from ..filters import IsUserFilter, MovieFilter
  
  
  class MovieViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = models.Movie.objects.all()
      serializer_class = serializers.MovieSerializer
      filter_backends = (
          filters.OrderingFilter,
          filters.DjangoFilterBackend,
      )
      ordering_fields = (
          'title',
          'released',
          'runtime',
      )
      ordering = ('title',)
      filter_class = MovieFilter
  
  
  class GenreViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = models.Genre.objects.all()
      serializer_class = serializers.GenreSerializer
      filter_backends = (
          filters.OrderingFilter,
      )
      ordering_fields = (
          'name',
      )
      ordering = ('name',)
  
  
  class WatchlistViewSet(viewsets.ModelViewSet):
      queryset = models.Watchlist.objects.all()
      serializer_class = serializers.WatchlistSerializer
      filter_backends = (
          IsUserFilter,
          filters.DjangoObjectPermissionsFilter,
      )
      permission_classes = (
          permissions.DjangoObjectPermissions,
      )
  
  
  class ResumeViewSet(viewsets.ModelViewSet):
      queryset = models.Resume.objects.all()
      serializer_class = serializers.ResumeSerializer
      filter_backends = (
          IsUserFilter,
          filters.DjangoObjectPermissionsFilter,
      )
      permission_classes = (
          permissions.DjangoObjectPermissions,
      )
  
  
  class RatingViewSet(viewsets.ModelViewSet):
      queryset = models.Rating.objects.all()
      serializer_class = serializers.RatingSerializer
      filter_backends = (
          filters.DjangoObjectPermissionsFilter,
      )
      permission_classes = (
          permissions.DjangoObjectPermissions,
      )
  
  
  class HistoryViewSet(viewsets.ModelViewSet):
      queryset = models.History.objects.all()
      serializer_class = serializers.HistorySerializer
      filter_backends = (
          IsUserFilter,
          filters.DjangoObjectPermissionsFilter,
      )
      permission_classes = (
          permissions.DjangoObjectPermissions,
      )
  
new_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  from rest_framework import viewsets, filters
  
  from .. import (
      models,
      permissions,
  )
  from ..serializers import (
     hyperlink as serializers
  )
  from ..filters import IsUserFilter, MovieFilter
  
  
  class MovieViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = models.Movie.objects.all()
      serializer_class = serializers.MovieSerializer
      filter_backends = (
          filters.OrderingFilter,
          filters.DjangoFilterBackend,
      )
      ordering_fields = (
          'title',
          'released',
          'runtime',
      )
      ordering = ('title',)
      filter_class = MovieFilter
  
  
  class GenreViewSet(viewsets.ReadOnlyModelViewSet):
      queryset = models.Genre.objects.all()
      serializer_class = serializers.GenreSerializer
      filter_backends = (
          filters.OrderingFilter,
      )
      ordering_fields = (
          'name',
      )
      ordering = ('name',)
  
  
  class WatchlistViewSet(viewsets.ModelViewSet):
      queryset = models.Watchlist.objects.all()
      serializer_class = serializers.WatchlistSerializer
      filter_backends = (
          IsUserFilter,
          filters.DjangoObjectPermissionsFilter,
      )
      permission_classes = (
          permissions.DjangoObjectPermissions,
      )
  
  
  class ResumeViewSet(viewsets.ModelViewSet):
      queryset = models.Resume.objects.all()
      serializer_class = serializers.ResumeSerializer
      filter_backends = (
          IsUserFilter,
      )
  
  
  class RatingViewSet(viewsets.ModelViewSet):
      queryset = models.Rating.objects.all()
      serializer_class = serializers.RatingSerializer
      filter_backends = (
          filters.DjangoObjectPermissionsFilter,
      )
      permission_classes = (
          permissions.DjangoObjectPermissions,
      )
  
  
  class HistoryViewSet(viewsets.ModelViewSet):
      queryset = models.History.objects.all()
      serializer_class = serializers.HistorySerializer
      filter_backends = (
          IsUserFilter,
      )
  
subject: Disable permission filters.