From b1bf8d64fbadcab860eb98662c49b8db33db0c3c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 21 Jan 2015 20:59:40 +0100 Subject: [1.7.x] Fixed #24193 -- Prevented unclosed file warnings in static.serve() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This regression was caused by 818e59a3f0. The patch is a partial backport of the new FileResponse class available in later Django versions. Thanks Raphaƫl Hertzog for the report, and Tim Graham and Collin Anderson for the reviews. --- docs/releases/1.7.4.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/1.7.4.txt b/docs/releases/1.7.4.txt index 5f10e5e8c6..0d53459068 100644 --- a/docs/releases/1.7.4.txt +++ b/docs/releases/1.7.4.txt @@ -17,3 +17,6 @@ Bugfixes * Fixed a migration crash on MySQL when migrating from a ``OneToOneField`` to a ``ForeignKey`` (:ticket:`24163`). + +* Prevented the ``static.serve`` view from producing ``ResourceWarning``\s in + certain circumstances (security fix regression, :ticket:`24193`). -- cgit v1.3