mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +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:
parent
82292141a0
commit
942818e1b3
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue