From: Radek Czajka Date: Tue, 20 Sep 2022 12:15:43 +0000 (+0200) Subject: Fix after upgrading django-filter. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/66f7c2655c3bbc544569b6b5111b50b14cb9336b Fix after upgrading django-filter. --- 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):