From eca526eab09b34a8190b591812ab99646cb1f34a Mon Sep 17 00:00:00 2001 From: Daniel Ivanov Date: Fri, 4 Nov 2022 16:43:40 +0300 Subject: [4.1.x] Fixed #34088 -- Fixed Sitemap.get_latest_lastmod() crash with empty items. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug in 480191244d12fefbf95854b2b117c71ffe44749a. Thanks Michal Čihař for the report. Backport of 5eab4d1924613a5506e517f157054b4852ae7dc2 from main --- docs/releases/4.1.4.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.1.4.txt b/docs/releases/4.1.4.txt index 21040ebab6..3079fc55b7 100644 --- a/docs/releases/4.1.4.txt +++ b/docs/releases/4.1.4.txt @@ -11,3 +11,8 @@ Bugfixes * Fixed a regression in Django 4.1 that caused an unnecessary table rebuilt when adding ``ManyToManyField`` on SQLite (:ticket:`34138`). + +* Fixed a bug in Django 4.1 that caused a crash of the sitemap index view with + an empty :meth:`Sitemap.items() ` and + a callable :attr:`~django.contrib.sitemaps.Sitemap.lastmod` + (:ticket:`34088`). -- cgit v1.3