MCPcopy
hub / github.com/django/django / getlist

Method getlist

django/utils/datastructures.py:149–154  ·  view source on GitHub ↗

Return the list of values for the key. If key doesn't exist, return a default value.

(self, key, default=None)

Source from the content-addressed store, hash-verified

147 return values
148
149 def getlist(self, key, default=None):
150 """
151 Return the list of values for the key. If key doesn't exist, return a
152 default value.
153 """
154 return self._getlist(key, default, force_list=True)
155
156 def setlist(self, key, list_):
157 super().__setitem__(key, list_)

Callers 10

test_multivaluedictMethod · 0.95
test_appendlistMethod · 0.95
test_getlist_defaultMethod · 0.95
response_actionMethod · 0.45
_changeform_viewMethod · 0.45
changelist_viewMethod · 0.45
_populateMethod · 0.45
_reverse_with_prefixMethod · 0.45

Calls 1

_getlistMethod · 0.95

Tested by 5

test_multivaluedictMethod · 0.76
test_appendlistMethod · 0.76
test_getlist_defaultMethod · 0.76