#14198: « None » appears in priority field of sitemaps when using GenericSitemap
without specify priority (#14164 related)
-----------------------------------------------------+----------------------
Reporter: palkeo | Owner: nobody
Status: new | Milestone:
Component: Internationalization | Version: SVN
Keywords: internationalization L10N sitemaps none | Stage: Unreviewed
Has_patch: 1 |
-----------------------------------------------------+----------------------
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(),
},
),
[...]
}
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/14198>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.