1
0
mirror of https://github.com/django/django.git synced 2024-12-26 11:06:07 +00:00

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

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()