﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34113	max() arg is an empty sequence	Mikhail Mitrofanov	nobody	"With empty items sequence Sitemap raise ValueError: max() arg is an empty sequence

Sitemap example:

{{{
class RealtyPropertySitemap(Sitemap):
    changefreq = ""monthly""

    def items(self):
        return Property.objects.filter(is_active=True).only(""pk"", ""slug"", ""lastmodified"").order_by(""pk"")

    def lastmod(self, obj: Property):
        return obj.lastmodified
}}}
"	Bug	closed	contrib.sitemaps	4.1	Normal	duplicate			Unreviewed	0	0	0	0	0	0
