From 4910c23dccab99d63774ab654bbfe3217b1abe49 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 21 Aug 2019 17:00:47 +0300 Subject: [PATCH] fixed CollectionListView --- apps/collection/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/collection/models.py b/apps/collection/models.py index 71fb2052..f57e7c86 100644 --- a/apps/collection/models.py +++ b/apps/collection/models.py @@ -28,9 +28,9 @@ class CollectionDateMixin(models.Model): class CollectionQuerySet(models.QuerySet): """QuerySet for model Collection""" - def by_country(self, country_id): - """Filter collection by country id.""" - return self.filter(country=country_id) + def by_country(self, country): + """Filter collection by country.""" + return self.filter(country=country) def published(self): """Returned only published collection"""