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.
This commit is contained in:
		
							parent
							
								
									8e6c2e54ac
								
							
						
					
					
						commit
						1e396f77a3
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue