From b72f9956cff0e40ee0af2fe856f03102db637966 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 21 Aug 2019 16:57:35 +0300 Subject: [PATCH] version 0.0.22 updated CollectionList get_queryset method --- apps/collection/views/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/collection/views/common.py b/apps/collection/views/common.py index cbc41832..7581974e 100644 --- a/apps/collection/views/common.py +++ b/apps/collection/views/common.py @@ -34,7 +34,7 @@ class CollectionListView(CollectionViewMixin, generics.ListAPIView): """Override get_queryset method""" country_id = self.request.query_params.get('country_id') return models.Collection.objects.published()\ - .filter(country=country_id) + .by_country(country=country_id) class CollectionRetrieveView(CollectionViewMixin, generics.RetrieveAPIView):