- def index_view(self, request):
- return HttpResponse(self.index_template.django_template.render(RequestContext(request, {'newsletter': self.newsletter})), mimetype=self.index_template.mimetype)
+ def index_view(self, request, node=None, extra_context=None):
+ context = {}
+ context.update(extra_context or {})
+ context.update({'newsletter': self.newsletter})
+ return self.index_page.render_to_response(node, request, extra_context=context)