mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Deprecated some arguments of django.shortcuts.render(_to_response).
dictionary and context_instance and superseded by context. Refactored tests that relied context_instance with more modern idioms.
This commit is contained in:
@@ -1210,6 +1210,8 @@ now optional.
|
||||
The following functions will no longer accept the ``dictionary`` and
|
||||
``context_instance`` parameters in Django 2.0:
|
||||
|
||||
* ``django.shortcuts.render()``
|
||||
* ``django.shortcuts.render_to_response()``
|
||||
* ``django.template.loader.render_to_string()``
|
||||
|
||||
Use the ``context`` parameter instead. When ``dictionary`` is passed as a
|
||||
|
||||
Reference in New Issue
Block a user