summaryrefslogtreecommitdiff
path: root/tests/shortcuts
Commit message (Collapse)AuthorAgeFilesLines
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-073-45/+62
|
* Fixed #31789 -- Added a new headers interface to HttpResponse.Tom Carrick2020-09-141-2/+2
|
* Refs #25978 -- Removed shortcuts.render_to_response() per deprecation timeline.Tim Graham2019-01-173-85/+1
|
* Updated test URL patterns to use path() and re_path().Tim Graham2018-12-311-11/+11
|
* Fixed #25978 -- Deprecated shorcuts.render_to_response().Tim Graham2017-02-112-35/+41
|
* Removed unused view and url from shortcuts tests.Alasdair Nicol2016-04-122-8/+0
| | | The test that used these was removed in 9114fe8adabe626619665c9853ba952798da5530.
* Removed support for passing a context to a generic Template.render().Tim Graham2015-09-231-12/+1
| | | | Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
* Removed dictionary and context_instance parameters for render functions.Tim Graham2015-09-233-31/+1
| | | | Per deprecation timeline.
* Removed dirs parameter in template engine methods and related funtions.Tim Graham2015-09-234-30/+0
| | | | Per deprecation timeline.
* Removed current_app argument to render() and TemplateResponse().Tim Graham2015-09-233-28/+0
| | | | Per deprecation timeline.
* Renamed RemovedInDjangoXYWarnings for new roadmap.Tim Graham2015-06-241-8/+8
| | | | | Forwardport of ae1d663b7913f6da233c55409c4973248372d302 from stable/1.8.x plus more.
* Refs #24652 -- Used SimpleTestCase where appropriate.Simon Charette2015-05-201-2/+2
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-062-3/+2
|
* Fixed #24168 -- Allowed selecting a template engine in a few APIs.Aymeric Augustin2015-02-035-0/+46
| | | | | | | | | | 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.
* Fixed #24124 (again) -- Updated tests with new default context_processors.Aymeric Augustin2015-01-122-7/+6
| | | | Thanks Collin for the review.
* Restored support for multiple template names in render(_to_response).Aymeric Augustin2015-01-073-0/+32
| | | | | | This possibility was documented but not tested. It had been broken during the multiple template engines refactor.
* Applied ignore_warnings to Django testsClaude Paroz2014-12-301-23/+15
|
* Deprecated TEMPLATE_CONTEXT_PROCESSORS.Aymeric Augustin2014-12-281-1/+0
|
* Deprecated current_app in TemplateResponse and render(_to_response).Aymeric Augustin2014-12-281-2/+2
|
* Deprecated some arguments of django.shortcuts.render(_to_response).Aymeric Augustin2014-12-281-5/+15
| | | | | | dictionary and context_instance and superseded by context. Refactored tests that relied context_instance with more modern idioms.
* Moved context_processors from django.core to django.template.Aymeric Augustin2014-12-281-1/+1
|
* Deprecated dirs argument to override TEMPLATE_DIRS.Aymeric Augustin2014-11-231-2/+8
| | | | Cancels 2f0566fa. Refs #4278.
* Silenced a flake8 warning.Berker Peksag2014-11-221-0/+1
| | | | ../tests/shortcuts/views.py:45:1: E302 expected 2 blank lines, found 1
* Avoided rewrapping Contexts in render_to_response.Aymeric Augustin2014-11-223-0/+19
| | | | | | | | | | | | | 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-226-0/+171