From: Matthijs Kooijman Date: Fri, 31 Oct 2008 16:51:49 +0000 (+0100) Subject: Don't pass base to the comment preview template. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=6ddbd39b9bfb49ffeb8e444b3cbe23a378cd36f2;p=matthijs%2Fprojects%2Fxerxes.git Don't pass base to the comment preview template. This parameter was added to support embedding previews in the admin as well, but we'll just keep previews in the frontend for now. --- diff --git a/influences/views.py b/influences/views.py index fe062d5..35ee02e 100644 --- a/influences/views.py +++ b/influences/views.py @@ -92,8 +92,6 @@ def influence_list(request): 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) diff --git a/templates/influences/influence_comment_preview.html b/templates/influences/influence_comment_preview.html index 53ef495..f0f04ba 100644 --- a/templates/influences/influence_comment_preview.html +++ b/templates/influences/influence_comment_preview.html @@ -1,4 +1,4 @@ -{% extends base %} +{% extends "influences/influence_detail.html" %} {% load threadedcommentstags %}