X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9ff5f2ac22360b1ff3ef2473c15d4acfd1e7769b..9d566b4741eb66bf09b5c7d213aa8541886e100a:/src/documents/api/views.py?ds=sidebyside 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):