Changeset - 1e396f77a392
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 7 years ago 2015-03-04 23:24:53
bkuhn@ebb.org
More extra_context stuff? Put it all in there!

Simply move the blog_entries field into extra_context and pass the whole
darn thing along to the template.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
www/conservancy/apps/blog/views.py
Show inline comments
...
 
@@ -80,9 +80,9 @@ def custom_index(request, queryset, *args, **kwargs):
 
        # If page is out of range (e.g. 9999), deliver last page of results.
 
        blog_entires = paginator.page(paginator.num_pages)
 

	
 
    return render_to_response('blog/entry_list.html',
 
                              {"blog_entries": blog_entries, "date_list" : extra_context['date_list'],
 
                               "authors" : extra_context['authors'], "tags" : extra_context['tags'] })
 
    extra_content['blog_entries'] = blog_entries
 

	
 
    return render_to_response('blog/entry_list.html', extra_content)
 

	
 
    callable = BlogListView.as_view(**kwargs)
 
    return callable(request)
0 comments (0 inline, 0 general)