diff options
| author | Simon Charette <charette.s@gmail.com> | 2025-02-17 13:45:31 -0500 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-02-18 11:43:27 +0100 |
| commit | c3a23aa02faa1cf1d32e43d66858e793cd9ecac4 (patch) | |
| tree | 20e75883eb01e142c839c72d9ca9444564f25a51 /docs/releases/5.1.7.txt | |
| parent | 51398f8bd568a6324a8cafe20c068d0974913ad5 (diff) | |
Fixed #36197 -- Fixed improper many-to-many count() and exists() for non-pk to_field.
Regression in 66e47ac69a7e71cf32eee312d05668d8f1ba24bb.
Thanks mfontana-elem for the report and Sarah for the tests.
Diffstat (limited to 'docs/releases/5.1.7.txt')
| -rw-r--r-- | docs/releases/5.1.7.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/releases/5.1.7.txt b/docs/releases/5.1.7.txt index deda4f2f92..c32f8f5ae1 100644 --- a/docs/releases/5.1.7.txt +++ b/docs/releases/5.1.7.txt @@ -16,3 +16,8 @@ Bugfixes * Fixed a bug in Django 5.1 where ``FileSystemStorage``, with ``allow_overwrite`` set to ``True``, did not truncate the overwritten file content (:ticket:`36191`). + +* Fixed a regression in Django 5.1 where the ``count`` and ``exists`` methods + of ``ManyToManyField`` related managers would always return ``0`` and + ``False`` when the intermediary model back references used ``to_field`` + (:ticket:`36197`). |
