X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/18aa8ca52202003e5628a882f3469a04d905cc05..4fb23ed3c3396d23a37a718fc857ecc8b36b0c7f:/src/catalogue/api/views.py?ds=sidebyside diff --git a/src/catalogue/api/views.py b/src/catalogue/api/views.py index 932f9cda8..c0dc57f76 100644 --- a/src/catalogue/api/views.py +++ b/src/catalogue/api/views.py @@ -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') - 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')