mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Deprecated passing a Context to a generic Template.render.
A deprecation path is required because the return type of django.template.loader.get_template changed during the multiple template engines refactor. test_csrf_token_in_404 was incorrect: it tested the case when the hardcoded template was rendered, and that template doesn't depend on the CSRF token. This commit makes it test the case when a custom template is rendered.
This commit is contained in:
parent
71b7668b75
commit
a3e783fe11
13 changed files with 120 additions and 36 deletions
|
@ -95,6 +95,8 @@ entire :setting:`TEMPLATES` setting instead.
|
|||
:mod:`django.template.loader`
|
||||
=============================
|
||||
|
||||
.. _get_template-upgrade-django-18:
|
||||
|
||||
:func:`~django.template.loader.get_template` and :func:`~django.template.loader.select_template`
|
||||
------------------------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue