mirror of
https://github.com/django/django.git
synced 2024-12-27 19:46:22 +00:00
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
This commit is contained in:
parent
526de4987a
commit
1e910f94d2
@ -122,7 +122,8 @@ def compile_string(template_string):
|
|||||||
|
|
||||||
class Context:
|
class Context:
|
||||||
"A stack container for variable context"
|
"A stack container for variable context"
|
||||||
def __init__(self, dict={}):
|
def __init__(self, dict=None):
|
||||||
|
dict = dict or {}
|
||||||
self.dicts = [dict]
|
self.dicts = [dict]
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user