X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8da57c41af2d69702bbc23c7a64adc6f102d2bcd..1cc3cb0514586ece78aa7b03bf19e83e7b3789a3:/src/documents/api/views.py diff --git a/src/documents/api/views.py b/src/documents/api/views.py index 36e886c2..751a9d41 100644 --- a/src/documents/api/views.py +++ b/src/documents/api/views.py @@ -24,7 +24,10 @@ class ChunkList(ListAPIView): queryset = models.Chunk.objects.all() serializer_class = serializers.ChunkSerializer filterset_fields = ['user', 'stage'] - search_fields = ['book__title'] + search_fields = [ + 'book__title', + '=book_slug', + ] def get_queryset(self): return models.Chunk.get_visible_for(self.request.user)