mirror of https://github.com/django/django.git
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:
parent
82292141a0
commit
942818e1b3
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue