From 7089502b98f80e8dc1c8f6e85fb0620809aec30e Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Mon, 27 May 2019 12:50:05 +0100 Subject: [2.2.x] Fixed #30523 -- Fixed updating file modification times on seen files in auto-reloader when using StatReloader. Previously we updated the file mtimes if the file has not been seen before - i.e on the first iteration of the loop. If the mtime has been changed we triggered the notify_file_changed() method which in all cases except the translations will result in the process being terminated. To be strictly correct we need to update the mtime for either branch of the conditional. Regression in 6754bffa2b2df15a741008aa611c1bb0e8dff22b. Backport of 480492fe70b0bb7df61c00854dc8535c9d21ba64 from master --- docs/releases/2.2.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/2.2.2.txt b/docs/releases/2.2.2.txt index e95fa343fc..bcaac9f15d 100644 --- a/docs/releases/2.2.2.txt +++ b/docs/releases/2.2.2.txt @@ -28,3 +28,7 @@ Bugfixes * Fixed a regression in Django 2.2 that caused a crash of auto-reloader when an exception with custom signature is raised (:ticket:`30516`). + +* Fixed a regression in Django 2.2.1 where auto-reloader unnecessarily reloads + translation files multiple times when using ``StatReloader`` + (:ticket:`30523`). -- cgit v1.3