summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-17 23:06:16 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-17 23:06:16 +0000
commit1e910f94d23e2b4dc2ae818c0fe23acec9f014aa (patch)
tree63dd20e5fbbdaf24baf324a7d101e0f398cd3e14
parent526de4987a36d10312edeb5f342d8868928e475e (diff)
Fixed mutable-argument bug in template.Context init. Thanks, Luke
git-svn-id: http://code.djangoproject.com/svn/django/trunk@644 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/template.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/core/template.py b/django/core/template.py
index e727e3e5fa..35b557bbfb 100644
--- a/django/core/template.py
+++ b/django/core/template.py
@@ -122,7 +122,8 @@ def compile_string(template_string):
class Context:
"A stack container for variable context"
- def __init__(self, dict={}):
+ def __init__(self, dict=None):
+ dict = dict or {}
self.dicts = [dict]
def __repr__(self):