From 942818e1b35aefd382f45f1b4552ea250f5e1090 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 25 Jul 2012 10:16:35 +0200 Subject: [PATCH] Rolled back a unnecessary change in 8f002867b2. This keeps the implementation of setdefault and setlistdefault consistent. Also it's marginally faster than looking up the value again. --- django/utils/datastructures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/utils/datastructures.py b/django/utils/datastructures.py index 41b43b286c..ce5218deb3 100644 --- a/django/utils/datastructures.py +++ b/django/utils/datastructures.py @@ -347,6 +347,7 @@ class MultiValueDict(dict): if default_list is None: default_list = [] self.setlist(key, default_list) + return default_list return self.getlist(key) def appendlist(self, key, value):