fixed CollectionListView
This commit is contained in:
parent
b72f9956cf
commit
4910c23dcc
|
|
@ -28,9 +28,9 @@ class CollectionDateMixin(models.Model):
|
||||||
class CollectionQuerySet(models.QuerySet):
|
class CollectionQuerySet(models.QuerySet):
|
||||||
"""QuerySet for model Collection"""
|
"""QuerySet for model Collection"""
|
||||||
|
|
||||||
def by_country(self, country_id):
|
def by_country(self, country):
|
||||||
"""Filter collection by country id."""
|
"""Filter collection by country."""
|
||||||
return self.filter(country=country_id)
|
return self.filter(country=country)
|
||||||
|
|
||||||
def published(self):
|
def published(self):
|
||||||
"""Returned only published collection"""
|
"""Returned only published collection"""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user