Use years of birth and death in author descriptions.
[redakcja.git] / src / documents / api / views.py
index a2f3529..36e886c 100644 (file)
@@ -23,7 +23,7 @@ class BookDetail(RetrieveAPIView):
 class ChunkList(ListAPIView):
     queryset = models.Chunk.objects.all()
     serializer_class = serializers.ChunkSerializer
 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):
     search_fields = ['book__title']
 
     def get_queryset(self):