diff options
| author | Tim Graham <timograham@gmail.com> | 2017-04-26 09:40:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-26 09:40:48 -0400 |
| commit | bce5cc57e915914708f9cd4c8bd6bbc6a68195d4 (patch) | |
| tree | a254080616e1d1a0a6adca24f28f1c6a2f09c224 /docs | |
| parent | 8bf96c109f6cd96425345a89449f06b857c4a277 (diff) | |
Fixed #28125 -- Clarified 1.11 release note about Template.render() prohibiting non-dict context.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/1.11.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index 953a7a5493..023b55240e 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -601,14 +601,15 @@ Some widget values, such as ``<select>`` options, are now localized if widget templates that uses the :ttag:`localize` template tag to turn off localization. -``django.Template.render()`` prohibits non-dict context -------------------------------------------------------- +``django.template.backends.django.Template.render()`` prohibits non-dict context +-------------------------------------------------------------------------------- -For compatibility with multiple template engines, ``django.Template.render()`` -must receive a dictionary of context rather than ``Context`` or -``RequestContext``. If you were passing either of the two classes, pass a -dictionary instead -- doing so is backwards-compatible with older versions of -Django. +For compatibility with multiple template engines, +``django.template.backends.django.Template.render()`` (returned from high-level +template loader APIs such as ``loader.get_template()``) must receive a +dictionary of context rather than ``Context`` or ``RequestContext``. If you +were passing either of the two classes, pass a dictionary instead -- doing so +is backwards-compatible with older versions of Django. Model state changes in migration operations ------------------------------------------- |
