Debian Codegraph @

docs/releases/5.1.7.txt

raw
1 ==========================
2 Django 5.1.7 release notes
3 ==========================
4
5 *March 6, 2025*
6
7 Django 5.1.7 fixes a security issue with severity "moderate" and several bugs
8 in 5.1.6.
9
10 CVE-2025-26699: Potential denial-of-service vulnerability in ``django.utils.text.wrap()``
11 =========================================================================================
12
13 The ``wrap()`` and :tfilter:`wordwrap` template filter were subject to a
14 potential denial-of-service attack when used with very long strings.
15
16 Bugfixes
17 ========
18
19 * Fixed a bug in Django 5.1 where the ``{% querystring %}`` template tag
20 returned an empty string rather than ``"?"`` when all parameters had been
21 removed from the query string (:ticket:`36182`).
22
23 * Fixed a bug in Django 5.1 where ``FileSystemStorage``, with
24 ``allow_overwrite`` set to ``True``, did not truncate the overwritten file
25 content (:ticket:`36191`).
26
27 * Fixed a regression in Django 5.1 where the ``count`` and ``exists`` methods
28 of ``ManyToManyField`` related managers would always return ``0`` and
29 ``False`` when the intermediary model back references used ``to_field``
30 (:ticket:`36197`).
31
32 * Fixed a regression in Django 5.1 where the ``pre_save`` and ``post_save``
33 signals for ``LogEntry`` were not sent when deleting a single object in the
34 admin (:ticket:`36217`).