﻿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
14198	« None » appears in priority field of sitemaps when using GenericSitemap without specify priority (#14164 related)	palkeo	nobody	"When using GenericSitemap class, and without specifying priority, the template generate an invalid sitemap.
The sitemap contains « <priority>None</priority> »

I think it's because of the #14164 patch : It will apply str() on the priority, even if the priority is None ! Then the priority will be « None ».


To reproduce the problem, apply the #14164 patch and then create a sitemap using GenericSitemap, without specifying priority.

For example :
{{{
sitemaps = {
    [...]
    'example': GenericSitemap({
            'queryset': Example.objects.all(),
        },
    ),
    [...]
}
}}}
"		closed	Internationalization	dev		fixed	internationalization L10N sitemaps none		Unreviewed	1	0	0	0	0	0
