From 89b97e2ad786234a8e8f5ba38bbe5fc3cbd01022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 8 Oct 2018 05:08:23 +0300 Subject: dynamic, infinite load done --- weblog/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'weblog/views.py') diff --git a/weblog/views.py b/weblog/views.py index 3152edc..72700c0 100755 --- a/weblog/views.py +++ b/weblog/views.py @@ -47,6 +47,7 @@ def Index(request, **kwargs): context_dict['breadcrumbs'] = [{'url': reverse('weblog:ArchiveIndex', kwargs={'year': year}), 'name': str(year)},] if month: context_dict['month'] = MONTHS[int(month)-1] + context_dict['month_num'] = month all_pages = all_pages.filter(published=True, publish_date__lte=now, publish_date__month=month) context_dict['breadcrumbs'].append({'url': reverse('weblog:ArchiveIndex', kwargs={'year': year, 'month': month}), 'name': MONTHS[int(month)-1]}) -- cgit v1.2.3