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:
parent
7337fe4900
commit
5cff7360cb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue