fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
631e1c3
)
Fix after upgrading django-filter.
author
Radek Czajka
<rczajka@rczajka.pl>
Tue, 20 Sep 2022 12:15:43 +0000
(14:15 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Tue, 20 Sep 2022 12:15:43 +0000
(14:15 +0200)
src/documents/api/views.py
patch
|
blob
|
history
diff --git
a/src/documents/api/views.py
b/src/documents/api/views.py
index
a2f3529
..
36e886c
100644
(file)
--- 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']
+ filter
set
_fields = ['user', 'stage']
search_fields = ['book__title']
def get_queryset(self):