﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3091	[patch] Views in django.contrib.comments should allow 'extra_context' and 'context_processors' arguments	eric@…	Ben Slavin	"The current django.contrib.comments view code does not allow passing in additional context.

This patch adds extra_context and context_processors parameters to the django.contrib.comments views.  I had the need to pass additional context for my templates into the comments ""generic"" views, and wanted to be able to pass the context in the same way I can for the other generic views.  This patch to comments.py allows this.

With this patch, comments work the same way as other generic views.  For example, to pass additional context in you may do:

{{{
urlpatterns = patterns('',
    (r'^comments/', include('django.contrib.comments.urls.comments'), {'extra_context': {'extra': 123}}),
)
}}}
"	enhancement	closed	contrib.comments	dev	normal	fixed	comments, freecomment, context, extra_context, sprintsept14		Ready for checkin	1	0	0	0	0	0
