mirror of
https://github.com/django/django.git
synced 2025-10-07 09:10:33 +00:00
[4.1.x] Fixed #34088 -- Fixed Sitemap.get_latest_lastmod() crash with empty items.
Bug in480191244d
. Thanks Michal Čihař for the report. Backport of5eab4d1924
from main
This commit is contained in:
parent
84a2b2e7a7
commit
eca526eab0
4 changed files with 35 additions and 1 deletions
|
@ -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() <django.contrib.sitemaps.Sitemap.items>` and
|
||||
a callable :attr:`~django.contrib.sitemaps.Sitemap.lastmod`
|
||||
(:ticket:`34088`).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue