Companion django.core.extensions checkin to [644]

git-svn-id: http://code.djangoproject.com/svn/django/trunk@645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-09-17 23:08:24 +00:00
parent 1e910f94d2
commit bcc2873c70
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class DjangoContext(Context):
This subclass of template.Context automatically populates 'user' and
'messages' in the context.
"""
def __init__(self, request, dict={}):
def __init__(self, request, dict=None):
Context.__init__(self, dict)
self['user'] = request.user
self['messages'] = request.user.get_and_delete_messages()