django/tests/context_processors
Aymeric Augustin 7331788300 Avoided rewrapping Contexts in render_to_response.
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-22 17:58:38 +01:00
..
templates/context_processors Converted sql_queries into a lazily evaluated list. 2014-08-30 13:27:56 +02:00
__init__.py Merged regressiontests and modeltests into the test root. 2013-02-26 14:36:57 +01:00
models.py Converted sql_queries into a lazily evaluated list. 2014-08-30 13:27:56 +02:00
tests.py Converted sql_queries into a lazily evaluated list. 2014-08-30 13:27:56 +02:00
urls.py Converted sql_queries into a lazily evaluated list. 2014-08-30 13:27:56 +02:00
views.py Avoided rewrapping Contexts in render_to_response. 2014-11-22 17:58:38 +01:00