[patch] Views in django.contrib.comments should allow 'extra_context' and 'context_processors' arguments
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}}),
)
Change History
(8)
Component: |
Contrib apps → django.contrib.comments
|
Has patch: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Ben Slavin
|
Status: |
new → assigned
|
Summary: |
Patch to add 'extra_context' and 'context_processors' to django.contrib.comments → [patch] Views in django.contrib.comments should allow 'extra_context' and 'context_processors' arguments
|
Triage Stage: |
Accepted → Ready for checkin
|
Keywords: |
sprintsept14 added
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Patch to django.contrib.comments.views methods