Permalink
Browse files

Fixes #15721 (again) via a minor tweak to avoid unexpected behaviour …

…of copy() which caused a range of test failures

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16044 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6f84e52 commit 9587235530b5e3315e3348b1e0d0899ec5408f6d @SmileyChris SmileyChris committed Apr 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/context.py
@@ -92,7 +92,7 @@ def __init__(self, dict_=None, autoescape=True, current_app=None, use_l10n=None)
super(Context, self).__init__(dict_)
def __copy__(self):
- duplicate = copy(super(Context, self))
+ duplicate = super(Context, self).__copy__()
duplicate.render_context = copy(self.render_context)
return duplicate

0 comments on commit 9587235

Please sign in to comment.