X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9ff5f2ac22360b1ff3ef2473c15d4acfd1e7769b..945eac1969985192b4f628ec68ac3468643cb9cd:/src/documents/api/views.py diff --git a/src/documents/api/views.py b/src/documents/api/views.py index a2f3529d..36e886c2 100644 --- a/src/documents/api/views.py +++ b/src/documents/api/views.py @@ -23,7 +23,7 @@ class BookDetail(RetrieveAPIView): class ChunkList(ListAPIView): queryset = models.Chunk.objects.all() serializer_class = serializers.ChunkSerializer - filter_fields = ['user', 'stage'] + filterset_fields = ['user', 'stage'] search_fields = ['book__title'] def get_queryset(self):