1
0
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:
Kaustubh
2020-08-22 11:23:50 +05:30
committed by Mariusz Felisiak
parent 547a07fa7e
commit b9be11d442
4 changed files with 33 additions and 3 deletions

View File

@@ -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
~~~~~~~~~~