diff options
Diffstat (limited to 'app/builder/base.py')
-rw-r--r-- | app/builder/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py index b41bbba..fabea6e 100644 --- a/app/builder/base.py +++ b/app/builder/base.py @@ -74,7 +74,7 @@ class BuildNew(): self.write_file(path, response.content) def build_year_view(self, url, paginate_by=99999): - years = self.model.objects.dates('pub_date', 'year') + years = self.get_model_queryset().dates('pub_date', 'year') for year in years: year = year.strftime('%Y') qs = self.model.objects.filter( @@ -88,7 +88,7 @@ class BuildNew(): ) def build_month_view(self, url, paginate_by=99999): - months = self.model.objects.dates('pub_date', 'month') + months = self.get_model_queryset().dates('pub_date', 'month') for m in months: year = m.strftime('%Y') month = m.strftime('%m') |