Changeset - 1e396f77a392
[Not reviewed]
0 1 0
Bradley Kuhn (bkuhn) - 9 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
...
 
@@ -82,5 +82,5 @@ def custom_index(request, queryset, *args, **kwargs):
 

	
 
    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)
 

	
0 comments (0 inline, 0 general)