diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-01-26 21:57:10 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2015-02-03 08:29:45 +0100 |
| commit | 2133f3157eff853329bafb7fda74c3c8fb4eae42 (patch) | |
| tree | 5bb262ab847c79b3f70d8a8888e267b2816b0373 /docs/ref/class-based-views/mixins-simple.txt | |
| parent | a53541852d5601232899e54d66e623bc163c6dc2 (diff) | |
Fixed #24168 -- Allowed selecting a template engine in a few APIs.
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.
Also added a test for render_to_response(status=...) which was missing
from fdbfc980.
Thanks Tim and Carl for the review.
Diffstat (limited to 'docs/ref/class-based-views/mixins-simple.txt')
| -rw-r--r-- | docs/ref/class-based-views/mixins-simple.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/mixins-simple.txt b/docs/ref/class-based-views/mixins-simple.txt index ce2bd2f3aa..ba18a1325b 100644 --- a/docs/ref/class-based-views/mixins-simple.txt +++ b/docs/ref/class-based-views/mixins-simple.txt @@ -49,6 +49,15 @@ TemplateResponseMixin a ``template_name`` will raise a :class:`django.core.exceptions.ImproperlyConfigured` exception. + .. attribute:: template_engine + + .. versionadded:: 1.8 + + The :setting:`NAME <TEMPLATES-NAME>` of a template engine to use for + loading the template. ``template_engine`` is passed as the ``using`` + keyword argument to ``response_class``. Default is ``None``, which + tells Django to search for the template in all configured engines. + .. attribute:: response_class The response class to be returned by ``render_to_response`` method. |
