Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/shortcuts/urls.py
Commit message (Collapse)AuthorAgeFilesLines
* Removed dictionary and context_instance parameters for ↵Tim Graham2015-09-241-2/+0
| | | | | | render functions. Per deprecation timeline.
* Removed dirs parameter in template engine methods and ↵Tim Graham2015-09-241-2/+0
| | | | | | related funtions. Per deprecation timeline.
* Removed current_app argument to render() and ↵Tim Graham2015-09-241-2/+0
| | | | | | TemplateResponse(). Per deprecation timeline.
* Fixed #24168 -- Allowed selecting a template engine in a ↵Aymeric Augustin2015-02-031-0/+3
| | | | | | | | | | | | 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.
* Restored support for multiple template names in ↵Aymeric Augustin2015-01-071-0/+2
| | | | | | | | render(_to_response). This possibility was documented but not tested. It had been broken during the multiple template engines refactor.
* Avoided rewrapping Contexts in render_to_response.Aymeric Augustin2014-11-221-0/+1
| | | | | | | | | | | | | This change preserves backwards-compatibility for a very common misuse of render_to_response which even occurred in the official documentation. It fixes that misuse wherever it happened in the code base and docs. Context.__init__ is documented as accepting a dict and nothing else. Since Context is dict-like, Context(Context({})) could work to some extent. However, things get complicated with RequestContext and that gets in the way of refactoring the template engine. This is the real rationale for this change.
* Moved tests for render shortcuts to their own app.Aymeric Augustin2014-11-221-0/+17