def influence_comment_preview(request, context_processors, extra_context, **kwargs):
# Use a custom template
kwargs['template'] = 'influences/influence_comment_preview.html'
- # The base template to extend
- extra_context['base'] = "influences/influence_detail.html"
# The object to be show in the influence detail
extra_context['object'] = get_object_or_404(Influence, pk=kwargs['object_id'])
return _preview(request, context_processors, extra_context, **kwargs)