summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorPaweł Marczewski <pwmarcz@gmail.com>2015-05-26 21:38:01 +0200
committerTim Graham <timograham@gmail.com>2015-05-27 10:04:57 -0400
commit300e8baf9429dbf1c5dff478558d793638dc2f54 (patch)
tree28b902acc4c017eb77d911e2cae2d55574873f81 /django
parent70be31bba7f8658f17235e33862319780c3dfad1 (diff)
Fixed #24847 -- Prevented items set on a RequestContext from being lost.
Diffstat (limited to 'django')
-rw-r--r--django/template/context.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/django/template/context.py b/django/template/context.py
index 778a83d7a3..2926cec30a 100644
--- a/django/template/context.py
+++ b/django/template/context.py
@@ -226,7 +226,13 @@ class RequestContext(Context):
self.request = request
self._processors = () if processors is None else tuple(processors)
self._processors_index = len(self.dicts)
- self.update({}) # placeholder for context processors output
+
+ # placeholder for context processors output
+ self.update({})
+
+ # empty dict for any new modifications
+ # (so that context processors don't overwrite them)
+ self.update({})
@contextmanager
def bind_template(self, template):