fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[wolnelektury.git]
/
src
/
catalogue
/
api
/
views.py
diff --git
a/src/catalogue/api/views.py
b/src/catalogue/api/views.py
index
e7ed8c6
..
c0dc57f
100644
(file)
--- a/
src/catalogue/api/views.py
+++ b/
src/catalogue/api/views.py
@@
-1,5
+1,5
@@
-# This file is part of Wolne
l
ektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja
Nowoczesna Polska
. See NOTICE for more information.
+# This file is part of Wolne
L
ektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja
Wolne Lektury
. See NOTICE for more information.
#
import json
import os.path
#
import json
import os.path
@@
-295,10
+295,6
@@
class TagCategoryView(ListAPIView):
def get_queryset(self):
category = self.kwargs['category']
tags = Tag.objects.filter(category=category).exclude(items=None).order_by('slug')
def get_queryset(self):
category = self.kwargs['category']
tags = Tag.objects.filter(category=category).exclude(items=None).order_by('slug')
- if self.request.query_params.get('book_only') == 'true':
- tags = tags.filter(for_books=True)
- if self.request.GET.get('picture_only') == 'true':
- tags = filter(for_pictures=True)
after = self.request.query_params.get('after')
count = self.request.query_params.get('count')
after = self.request.query_params.get('after')
count = self.request.query_params.get('count')