diff --git a/shelfzilla/apps/manga/models.py b/shelfzilla/apps/manga/models.py index 775388a..700ff37 100644 --- a/shelfzilla/apps/manga/models.py +++ b/shelfzilla/apps/manga/models.py @@ -27,8 +27,7 @@ class Publisher(Model): queryset = self.volumes.order_by('series__id')\ .distinct('series').values_list('series') - if queryset: - result = Series.objects.filter(pk__in=queryset) + result = Series.objects.filter(pk__in=queryset) self._series = result return self._series @@ -68,8 +67,7 @@ class Series(Model): result = [] queryset = self.volumes.order_by('publisher__id')\ .distinct('publisher').values_list('publisher') - if queryset: - result = Publisher.objects.filter(pk__in=queryset) + result = Publisher.objects.filter(pk__in=queryset) self._publishers = result