From eaa1a22341aef5b92f5c3cd682f01e61c4159262 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 3 Jan 2015 19:06:36 +0100 Subject: 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. --- docs/releases/1.8.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'docs') 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3