From 66f7c2655c3bbc544569b6b5111b50b14cb9336b Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 20 Sep 2022 14:15:43 +0200 Subject: [PATCH 1/1] Fix after upgrading django-filter. --- src/documents/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.20.1