Fixed #1131 -- Added repr() to MultiValueDict. Thanks, Simon

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-28 23:11:07 +00:00
parent 7337fe4900
commit 5cff7360cb
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ class MultiValueDict(dict):
def __init__(self, key_to_list_mapping=()):
dict.__init__(self, key_to_list_mapping)
def __repr__(self):
return "<MultiValueDict: %s>" % dict.__repr__(self)
def __getitem__(self, key):
"""
Returns the last data value for this key, or [] if it's an empty list;