diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-01-03 19:06:36 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-01-07 21:54:22 +0100 |
| commit | eaa1a22341aef5b92f5c3cd682f01e61c4159262 (patch) | |
| tree | 6e760006ff1f84178f350771ce5d11ceacdf4d79 /docs | |
| parent | 118592663dcb761fb269ead3ab8a4977bc2cd3a6 (diff) | |
Added a request argument to render_to_string.
This is for consistency with Template.render.
It adds a little bit of knowledge about HTTP requests in
django.template.loader but I think consistency trumps purity.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.8.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 0147b8b67b..cb25a7e8b3 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -1351,8 +1351,10 @@ The following functions will no longer accept the ``dictionary`` and Use the ``context`` parameter instead. When ``dictionary`` is passed as a positional argument, which is the most common idiom, no changes are needed. -There is no replacement for ``context_instance``. All data must be passed to -templates through the ``context`` dict. +If you're passing a :class:`~django.template.Context` in ``context_instance``, +pass a :class:`dict` in the ``context`` parameter instead. If you're passing a +:class:`~django.template.RequestContext`, pass the request separately in the +``request`` parameter. ``dirs`` argument of template-finding functions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
