From 05d805c4bb221420b2bd5fab3e5ed650693341c6 Mon Sep 17 00:00:00 2001 From: Karen Date: Thu, 11 Aug 2011 16:28:39 +0530 Subject: [PATCH] request context for inner page --- itf/boxes/views.py | 4 ++-- itf/frontpage/templatetags/itftags.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/itf/boxes/views.py b/itf/boxes/views.py index 6e4d592..3cb330e 100644 --- a/itf/boxes/views.py +++ b/itf/boxes/views.py @@ -6,14 +6,14 @@ from ox.django.decorators import login_required_json from ox.django.shortcuts import render_to_json_response, get_object_or_404_json, json_response from models import Panel import json - +from django.template import RequestContext def mainPage(request): d = {'title': 'India Theatre Forum'} return render_to_response("noel/index.html", d) def innerPage(request): - return render_to_response("noel/bestpractices.html") + return render_to_response("noel/bestpractices.html", RequestContext(request, {})) def getPage(request): ''' diff --git a/itf/frontpage/templatetags/itftags.py b/itf/frontpage/templatetags/itftags.py index c4e48ec..d619d50 100644 --- a/itf/frontpage/templatetags/itftags.py +++ b/itf/frontpage/templatetags/itftags.py @@ -21,7 +21,7 @@ def format_title(value): words = v.split(splitter) l = len(words) if l > 1: - boldWord = "" + words[l - 1] + "" + boldWord = "" + words[l - 1] + "" return (splitter.join(words[:l-1]) + splitter + boldWord).upper() else: return words[0].upper()