mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +00:00
newforms-admin: Merged to [4373]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4374 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9c5e28e1e8
commit
4e98d69be6
@ -81,6 +81,10 @@ class SortedDict(dict):
|
||||
self.keyOrder.append(key)
|
||||
return dict.setdefault(self, key, default)
|
||||
|
||||
def value_for_index(self, index):
|
||||
"Returns the value of the item at the given zero-based index."
|
||||
return self[self.keyOrder[index]]
|
||||
|
||||
class MultiValueDictKeyError(KeyError):
|
||||
pass
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user