mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #31918 -- Allowed QuerySet.in_bulk() to fetch on a single distinct field.
This commit is contained in:
committed by
Mariusz Felisiak
parent
547a07fa7e
commit
b9be11d442
@@ -286,6 +286,10 @@ Models
|
||||
* The new :class:`~django.db.models.functions.Collate` function allows
|
||||
filtering and ordering by specified database collations.
|
||||
|
||||
* The ``field_name`` argument of :meth:`.QuerySet.in_bulk()` now accepts
|
||||
distinct fields if there's only one field specified in
|
||||
:meth:`.QuerySet.distinct`.
|
||||
|
||||
Pagination
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user