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...
1 parent 7337fe4 commit 5cff7360cb202e1be049f181e11dab22b1e88d0c @adrianholovaty adrianholovaty committed Dec 28, 2005
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;

0 comments on commit 5cff736

Please sign in to comment.