#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
Resolution: | Keywords:
internationalization L10N sitemaps none
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------------+--------------------------------
Changes (by palkeo):
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Here is the patch, that can be applied to
django/contrib/sitemaps/__init__.py :
{{{
72c72
< 'priority': str(self.__get('priority', item, ''))
---
> 'priority': self.__get('priority', item, None)
73a74,75
> if type(url_info['priority']) == float:
> url_info['priority'] = str(url_info['priority'])
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/14198#comment:1>
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.