1
0
mirror of https://github.com/django/django.git synced 2024-12-25 18:46:22 +00:00

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.
This commit is contained in:
Aymeric Augustin 2012-07-25 10:16:35 +02:00
parent 82292141a0
commit 942818e1b3

View File

@ -347,6 +347,7 @@ class MultiValueDict(dict):
if default_list is None: if default_list is None:
default_list = [] default_list = []
self.setlist(key, default_list) self.setlist(key, default_list)
return default_list
return self.getlist(key) return self.getlist(key)
def appendlist(self, key, value): def appendlist(self, key, value):