Fixed #36614 -- Deprecated QuerySet.values_list(flat=True) without a field.
Some checks failed
Docs / spelling (push) Waiting to run
Docs / blacken-docs (push) Waiting to run
Docs / lint-docs (push) Waiting to run
Linters / flake8 (push) Has been cancelled
Linters / isort (push) Has been cancelled
Linters / black (push) Has been cancelled
Tests / Windows, SQLite, Python 3.13 (push) Has been cancelled
Tests / JavaScript tests (push) Has been cancelled

Thanks to Jacob Walls and Simon Charette for their input.

co-authored-by: Sarah Boyce <42296566+sarahboyce@users.noreply.github.com>
This commit is contained in:
Adam Johnson 2025-09-19 12:27:05 +02:00 committed by Sarah Boyce
parent d29852ae72
commit 8b241f84e2
4 changed files with 54 additions and 7 deletions

View file

@ -56,7 +56,8 @@ details on these changes.
See the :ref:`Django 6.1 release notes <deprecated-features-6.1>` for more
details on these changes.
* ...
* Calling :meth:`.QuerySet.values_list` with ``flat=True`` and no field name
will raise ``TypeError``.
.. _deprecation-removed-in-6.1: