summaryrefslogtreecommitdiff
path: root/tests/shortcuts/views.py
AgeCommit message (Collapse)Author
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2019-01-17Refs #25978 -- Removed shortcuts.render_to_response() per deprecation timeline.Tim Graham
2016-04-12Removed unused view and url from shortcuts tests.Alasdair Nicol
The test that used these was removed in 9114fe8adabe626619665c9853ba952798da5530.
2015-09-23Removed dictionary and context_instance parameters for render functions.Tim Graham
Per deprecation timeline.
2015-09-23Removed dirs parameter in template engine methods and related funtions.Tim Graham
Per deprecation timeline.
2015-09-23Removed current_app argument to render() and TemplateResponse().Tim Graham
Per deprecation timeline.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-02-03Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin
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.
2015-01-07Restored support for multiple template names in render(_to_response).Aymeric Augustin
This possibility was documented but not tested. It had been broken during the multiple template engines refactor.
2014-11-22Silenced a flake8 warning.Berker Peksag
../tests/shortcuts/views.py:45:1: E302 expected 2 blank lines, found 1
2014-11-22Avoided rewrapping Contexts in render_to_response.Aymeric Augustin
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.
2014-11-22Moved tests for render shortcuts to their own app.Aymeric Augustin