From a9d03c409406f3f95f692bc5545ebacc7f4e2e4f Mon Sep 17 00:00:00 2001 From: Gaƫl Utard Date: Sat, 15 Feb 2025 15:55:33 +0100 Subject: [5.1.x] Fixed #36191 -- Truncated the overwritten file content in FileSystemStorage. Backport of 0d1dd6bba0c18b7feb6caa5cbd8df80fbac54afd from main. --- docs/releases/5.1.7.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.1.7.txt b/docs/releases/5.1.7.txt index e184da6aca..deda4f2f92 100644 --- a/docs/releases/5.1.7.txt +++ b/docs/releases/5.1.7.txt @@ -12,3 +12,7 @@ Bugfixes * Fixed a bug in Django 5.1 where the ``{% querystring %}`` template tag returned an empty string rather than ``"?"`` when all parameters had been removed from the query string (:ticket:`36182`). + +* Fixed a bug in Django 5.1 where ``FileSystemStorage``, with + ``allow_overwrite`` set to ``True``, did not truncate the overwritten file + content (:ticket:`36191`). -- cgit v1.3