Skip to content

Commit 5ac322d

Browse files
committed
[1.11.x] Fixed #28125 -- Clarified 1.11 release note about Template.render() prohibiting non-dict context.
Backport of bce5cc5 from master
1 parent 1f1040a commit 5ac322d

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/releases/1.11.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -601,14 +601,15 @@ Some widget values, such as ``<select>`` options, are now localized if
601601
widget templates that uses the :ttag:`localize` template tag to turn off
602602
localization.
603603

604-
``django.Template.render()`` prohibits non-dict context
605-
-------------------------------------------------------
606-
607-
For compatibility with multiple template engines, ``django.Template.render()``
608-
must receive a dictionary of context rather than ``Context`` or
609-
``RequestContext``. If you were passing either of the two classes, pass a
610-
dictionary instead -- doing so is backwards-compatible with older versions of
611-
Django.
604+
``django.template.backends.django.Template.render()`` prohibits non-dict context
605+
--------------------------------------------------------------------------------
606+
607+
For compatibility with multiple template engines,
608+
``django.template.backends.django.Template.render()`` (returned from high-level
609+
template loader APIs such as ``loader.get_template()``) must receive a
610+
dictionary of context rather than ``Context`` or ``RequestContext``. If you
611+
were passing either of the two classes, pass a dictionary instead -- doing so
612+
is backwards-compatible with older versions of Django.
612613

613614
Model state changes in migration operations
614615
-------------------------------------------

0 commit comments

Comments
 (0)