Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/context_processors/views.py
Commit message (Collapse)AuthorAgeFilesLines
* Deprecated some arguments of ↵Aymeric Augustin2014-12-281-12/+4
| | | | | | | | 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.
* Avoided rewrapping Contexts in render_to_response.Aymeric Augustin2014-11-221-2/+3
| | | | | | | | | | | | | 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.
* Converted sql_queries into a lazily evaluated list.Bas Peschier2014-08-301-1/+12
| | | | Fixed #23364. Thanks Markush2010 for the report.
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-261-0/+8