From 6ddbd39b9bfb49ffeb8e444b3cbe23a378cd36f2 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 31 Oct 2008 17:51:49 +0100 Subject: [PATCH] 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. --- influences/views.py | 2 -- templates/influences/influence_comment_preview.html | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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 %} -- 2.30.2