diff options
author | Adrian Holovaty <adrian@holovaty.com> | 2005-12-28 23:11:07 +0000 |
---|---|---|
committer | Adrian Holovaty <adrian@holovaty.com> | 2005-12-28 23:11:07 +0000 |
commit | 5cff7360cb202e1be049f181e11dab22b1e88d0c (patch) | |
tree | 70614fd4bdcdb96a0214b8d9ee038e2bc67eee34 /django/utils/datastructures.py | |
parent | 7337fe490025fe16c7e3c8eceafd7981496ac1e7 (diff) | |
download | django-5cff7360cb202e1be049f181e11dab22b1e88d0c.tar.gz |
Fixed #1131 -- Added repr() to MultiValueDict. Thanks, Simon
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1789 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/datastructures.py')
-rw-r--r-- | django/utils/datastructures.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 81e4b30f6e..2b98117fda 100644 --- a/django/utils/datastructures.py +++ b/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; |