Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/shortcuts
Commit message (Collapse)AuthorAgeFilesLines
* Removed support for passing a context to a generic ↵Tim Graham2015-09-241-12/+1
| | | | | | Template.render(). Per deprecation timeline; refs a3e783fe11dd25bbf84bfb6201186566ed473506.
* Removed dictionary and context_instance parameters for ↵Tim Graham2015-09-243-31/+1
| | | | | | render functions. Per deprecation timeline.
* Removed dirs parameter in template engine methods and ↵Tim Graham2015-09-244-30/+0
| | | | | | related funtions. Per deprecation timeline.
* Removed current_app argument to render() and ↵Tim Graham2015-09-243-28/+0
| | | | | | TemplateResponse(). 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 ↵Aymeric Augustin2015-02-035-0/+46
| | | | | | | | | | | | 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.
* Fixed #24124 (again) -- Updated tests with new default ↵Aymeric Augustin2015-01-122-7/+6
| | | | | | context_processors. Thanks Collin for the review.
* Restored support for multiple template names in ↵Aymeric Augustin2015-01-073-0/+32
| | | | | | | | render(_to_response). 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 ↵Aymeric Augustin2014-12-281-2/+2
| | | | render(_to_response).
* Deprecated some arguments of ↵Aymeric Augustin2014-12-281-5/+15
| | | | | | | | django.shortcuts.render(_to_response). 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 ↵Aymeric Augustin2014-12-281-1/+1
| | | | django.template.
* 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