mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[5.1.x] Fixed #36197 -- Fixed improper many-to-many count() and exists() for non-pk to_field.
Regression in66e47ac69a. Thanks mfontana-elem for the report and Sarah for the tests. Backport ofc3a23aa02ffrom main.
This commit is contained in:
committed by
Sarah Boyce
parent
a9d03c4094
commit
8488074fe3
@@ -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`).
|
||||
|
||||
Reference in New Issue
Block a user