Fixed #29356 -- Clarified docs for QueryDict.getlist() default.

This commit is contained in:
Paul Grau 2020-10-08 21:19:51 +09:00 committed by GitHub
parent 1b32b2f614
commit 855fc06236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -584,8 +584,8 @@ In addition, ``QueryDict`` has the following methods:
.. method:: QueryDict.getlist(key, default=None) .. method:: QueryDict.getlist(key, default=None)
Returns a list of the data with the requested key. Returns an empty list if 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 the key doesn't exist and ``default`` is ``None``. It's guaranteed to
to return a list unless the default value provided isn't a list. return a list unless the default value provided isn't a list.
.. method:: QueryDict.setlist(key, list_) .. method:: QueryDict.setlist(key, list_)