summaryrefslogtreecommitdiff
path: root/apps/blog
diff options
context:
space:
mode:
Diffstat (limited to 'apps/blog')
-rw-r--r--apps/blog/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/blog/views.py b/apps/blog/views.py
index 70f934a..72c769e 100644
--- a/apps/blog/views.py
+++ b/apps/blog/views.py
@@ -37,7 +37,7 @@ def entry_list(request,page):
request.page_url = '/writing/%d/'
request.page = int(page)
qs = Entry.objects.filter(status__exact=1).order_by('-pub_date').select_related()
- return object_list(request, queryset=qs, template_name='archives/writing.html')
+ return object_list(request, queryset=qs, template_name='archives/writing.html', extra_context={'page':page})
"""
@@ -48,7 +48,7 @@ def topic_list(request,slug,page):
request.page = int(page)
topic = Topic.objects.get(slug=slug)
qs = Entry.objects.filter(status__exact=1,topics=topic).order_by('-pub_date').select_related()
- return object_list(request, queryset=qs, template_name='archives/topics.html',)
+ return object_list(request, queryset=qs, template_name='archives/topics.html',extra_context={'page':page})
"""