<s> from rest_framework import permissions as rf_permissions <EOL> from rest_framework import viewsets <EOL> from nodeconductor . core . filters import DjangoMappingFilterBackend <EOL> from . import serializers , filters , models <EOL> class ResourceSlaStateTransitionViewSet ( viewsets . ReadOnlyModelViewSet ) : <EOL> """<STR_LIT>""" <EOL> queryset = models . ResourceSlaStateTransition . objects . all ( ) . order_by ( '<STR_LIT>' ) <EOL> serializer_class = serializers . ResourceSlaStateTransitionSerializer <EOL> permission_classes = ( rf_permissions . IsAuthenticated , ) <EOL> filter_backends = ( DjangoMappingFilterBackend , filters . ResourceScopeFilterBackend ) <EOL> filter_class = filters . ResourceStateFilter </s>
