Explorar el Código

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

Paul Grau hace 4 años
padre
commit
855fc06236
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      docs/ref/request-response.txt

+ 2 - 2
docs/ref/request-response.txt

@@ -584,8 +584,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_)