diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-07 13:23:57 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-07-07 13:23:57 +0000 |
| commit | 1e747f98af99a23c5aff7b460d5b845c3a9e2013 (patch) | |
| tree | 6347c27684a68cf1ef76b92808aa9309b0688797 /docs/templates_python.txt | |
| parent | 7ed1a919681b5b028c3f6eef1a862ff91b66feb2 (diff) | |
newforms-admin: Merged from trunk up to [5625]. This includes the Unicode
merge, however, not all of admin/ (and none of admindocs/) has been ported and
checked yet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@5627 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/templates_python.txt')
| -rw-r--r-- | docs/templates_python.txt | 5 |
1 files changed, 3 insertions, 2 deletions
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 ---------------------------- |
