1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #27258 -- Prohibited django.Template.render() with non-dict context.

Thanks Shivang Bharadwaj for the initial patch.
This commit is contained in:
Shivang Bharadwaj
2016-12-29 02:33:20 +05:30
committed by Tim Graham
parent 4e89082f31
commit 6a74950513
4 changed files with 33 additions and 3 deletions

View File

@@ -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
-------------