diff options
author | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-10-08 05:08:23 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-10-08 05:08:23 +0300 |
commit | 89b97e2ad786234a8e8f5ba38bbe5fc3cbd01022 (patch) | |
tree | 4f99d55b8522f77b403de62b0a2dd8a7157b11f5 /weblog/views.py | |
parent | d42e64a09e6e1898d4423d786bc48a47a8b8fc0e (diff) | |
download | w3blog-89b97e2ad786234a8e8f5ba38bbe5fc3cbd01022.tar.gz w3blog-89b97e2ad786234a8e8f5ba38bbe5fc3cbd01022.zip |
dynamic, infinite load done
Diffstat (limited to 'weblog/views.py')
-rwxr-xr-x | weblog/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
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]}) |