mirror of
https://github.com/django/django.git
synced 2025-07-16 15:49:12 +00:00
[3.1.x] Fixed #29356 -- Clarified docs for QueryDict.getlist() default.
Backport of 855fc06236630464055b4f9ea422c68a07c6d02a from master
This commit is contained in:
parent
d1f791d394
commit
b0e5e7b671
@ -588,8 +588,8 @@ In addition, ``QueryDict`` has the following methods:
|
||||
.. method:: QueryDict.getlist(key, default=None)
|
||||
|
||||
Returns a list of the data with the requested key. Returns an empty list if
|
||||
the key doesn't exist and a default value wasn't provided. It's guaranteed
|
||||
to return a list unless the default value provided isn't a list.
|
||||
the key doesn't exist and ``default`` is ``None``. It's guaranteed to
|
||||
return a list unless the default value provided isn't a list.
|
||||
|
||||
.. method:: QueryDict.setlist(key, list_)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user