diff options
| author | Tim Graham <timograham@gmail.com> | 2015-09-05 12:06:34 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-23 19:31:11 -0400 |
| commit | 9af3c6b9cef974d7d99f1ac4e83f64f09f5d352c (patch) | |
| tree | 216b5dd7aed839957492df3401cd496388eeae1f /docs/ref/template-response.txt | |
| parent | e6cfa08f2d478cb962528188dff5cf4daf5e5f9b (diff) | |
Made template response APIs enforce the use of dict and backend-specific template objects.
Per deprecation timeline; refs 79deb6a0716e554cac5308e86f5754f19ad436dc.
Diffstat (limited to 'docs/ref/template-response.txt')
| -rw-r--r-- | docs/ref/template-response.txt | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/docs/ref/template-response.txt b/docs/ref/template-response.txt index 8fbc7b1c99..00198cb4e2 100644 --- a/docs/ref/template-response.txt +++ b/docs/ref/template-response.txt @@ -38,10 +38,6 @@ Attributes Example: ``['foo.html', 'path/to/bar.html']`` - .. deprecated:: 1.8 - - ``template_name`` used to accept a :class:`~django.template.Template`. - .. attribute:: SimpleTemplateResponse.context_data The context data to be used when rendering the template. It must be a @@ -49,10 +45,6 @@ Attributes Example: ``{'foo': 123}`` - .. deprecated:: 1.8 - - ``context_data`` used to accept a :class:`~django.template.Context`. - .. attribute:: SimpleTemplateResponse.rendered_content The current rendered value of the response content, using the current @@ -76,18 +68,10 @@ Methods :func:`~django.template.loader.get_template()`), the name of a template, or a list of template names. - .. deprecated:: 1.8 - - ``template`` used to accept a :class:`~django.template.Template`. - ``context`` A :class:`dict` of values to add to the template context. By default, this is an empty dictionary. - .. deprecated:: 1.8 - - ``context`` used to accept a :class:`~django.template.Context`. - ``content_type`` The value included in the HTTP ``Content-Type`` header, including the MIME type specification and the character set encoding. If @@ -118,16 +102,6 @@ Methods Override this method in order to customize the context. - .. versionchanged:: 1.8 - - ``resolve_context`` returns a :class:`dict`. It used to return a - :class:`~django.template.Context`. - - .. deprecated:: 1.8 - - ``resolve_context`` no longer accepts a - :class:`~django.template.Context`. - .. method:: SimpleTemplateResponse.resolve_template(template) Resolves the template instance to use for rendering. Accepts a @@ -139,16 +113,6 @@ Methods Override this method in order to customize template loading. - .. versionchanged:: 1.8 - - ``resolve_template`` returns backend-dependent template object. It - used to return a :class:`~django.template.Template`. - - .. deprecated:: 1.8 - - ``resolve_template`` no longer accepts a - :class:`~django.template.Template`. - .. method:: SimpleTemplateResponse.add_post_render_callback() Add a callback that will be invoked after rendering has taken @@ -203,18 +167,10 @@ Methods :func:`~django.template.loader.get_template()`), the name of a template, or a list of template names. - .. deprecated:: 1.8 - - ``template`` used to accept a :class:`~django.template.Template`. - ``context`` A :class:`dict` of values to add to the template context. By default, this is an empty dictionary. - .. deprecated:: 1.8 - - ``context`` used to accept a :class:`~django.template.Context`. - ``content_type`` The value included in the HTTP ``Content-Type`` header, including the MIME type specification and the character set encoding. If |
