Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed mutable-argument bug in template.Context init. Thanks, Luke

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1e910f94d23e2b4dc2ae818c0fe23acec9f014aa 1 parent 526de49
@adrianholovaty adrianholovaty authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/core/
3  django/core/
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.