Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5cff7360cb202e1be049f181e11dab22b1e88d0c 1 parent 7337fe4
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/utils/datastructures.py
View
3  django/utils/datastructures.py
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.