<s> from rest_framework . viewsets import ReadOnlyModelViewSet <EOL> from ui . models import Warc <EOL> from . serializers import WarcSerializer <EOL> from . filters import WarcFilter <EOL> class WarcViewSet ( ReadOnlyModelViewSet ) : <EOL> serializer_class = WarcSerializer <EOL> lookup_field = "<STR_LIT>" <EOL> filter_fields = ( '<STR_LIT>' , '<STR_LIT:path>' ) <EOL> filter_class = WarcFilter <EOL> def get_queryset ( self ) : <EOL> return Warc . objects . all ( ) </s>
