From c4b260a4b6303bea20d7f511fa832a1c122c02c0 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Wed, 4 Jul 2007 06:02:00 +0000 Subject: unicode: Merged from trunk up to [5600]. git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5601 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/templates_python.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/templates_python.txt') diff --git a/docs/templates_python.txt b/docs/templates_python.txt index 7171f32612..821f40fd8d 100644 --- a/docs/templates_python.txt +++ b/docs/templates_python.txt @@ -311,9 +311,10 @@ optional, third positional argument, ``processors``. In this example, the def some_view(request): # ... - return RequestContext(request, { + c = RequestContext(request, { 'foo': 'bar', }, [ip_address_processor]) + return t.render(c) Note:: If you're using Django's ``render_to_response()`` shortcut to populate a @@ -677,7 +678,7 @@ an object to it's string value before being passed to your function:: @template.stringfilter def lower(value): - return value.lower() + return value.lower() Writing custom template tags ---------------------------- -- cgit v1.3