From 6a7495051304d75865add6ff96422018984e1663 Mon Sep 17 00:00:00 2001 From: Shivang Bharadwaj Date: Thu, 29 Dec 2016 02:33:20 +0530 Subject: Fixed #27258 -- Prohibited django.Template.render() with non-dict context. Thanks Shivang Bharadwaj for the initial patch. --- docs/releases/1.11.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.11.txt b/docs/releases/1.11.txt index f894c261f9..0bf77e6e2d 100644 --- a/docs/releases/1.11.txt +++ b/docs/releases/1.11.txt @@ -575,6 +575,15 @@ Some undocumented classes in ``django.forms.widgets`` are removed: The ``Widget.format_output()`` method is removed. Use a custom widget template instead. +``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. + Miscellaneous ------------- -- cgit v1.3