1
0
mirror of https://github.com/django/django.git synced 2025-07-16 15:49:12 +00:00

[3.1.x] Fixed #32313 -- Corrected QuerySet.in_bulk() signature.

Backport of 02391bc98c406f3cd5e329d252ec5c4b63cf979e from master
This commit is contained in:
Iuri de Silvio 2021-01-11 04:00:49 -03:00 committed by Mariusz Felisiak
parent 2b443cb6c2
commit 1dd159f16e

View File

@ -2216,7 +2216,7 @@ database query like ``count()`` would.
``in_bulk()``
~~~~~~~~~~~~~
.. method:: in_bulk(id_list=None, field_name='pk')
.. method:: in_bulk(id_list=None, *, field_name='pk')
Takes a list of field values (``id_list``) and the ``field_name`` for those
values, and returns a dictionary mapping each value to an instance of the