Browse files

Rolled back a unnecessary change in 8f00286.

This keeps the implementation of setdefault and setlistdefault
consistent. Also it's marginally faster than looking up the value
  • Loading branch information...
aaugustin committed Jul 25, 2012
1 parent 8229214 commit 942818e1b35aefd382f45f1b4552ea250f5e1090
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/utils/
@@ -347,6 +347,7 @@ def setlistdefault(self, key, default_list=None):
if default_list is None:
default_list = []
self.setlist(key, default_list)
+ return default_list
return self.getlist(key)
def appendlist(self, key, value):

0 comments on commit 942818e

Please sign in to comment.