Code

Ticket #7039: patch_feedlang.diff

File patch_feedlang.diff, 680 bytes (added by write@…, 6 years ago)

feed language patch

Line 
1--- django/contrib/syndication/feeds.py (revision 7324)
2+++ django/contrib/syndication/feeds.py (working copy)
3@@ -81,7 +81,7 @@
4             subtitle = self.__get_dynamic_attr('subtitle', obj),
5             link = link,
6             description = self.__get_dynamic_attr('description', obj),
7-           language = self.__get_dynamic_attr('language', obj) or settings.LANGUAGE_CODE.decode(),
8+            language = settings.LANGUAGE_CODE.decode(),
9             feed_url = add_domain(current_site, self.__get_dynamic_attr('feed_url', obj)),
10             author_name = self.__get_dynamic_attr('author_name', obj),
11             author_link = self.__get_dynamic_attr('author_link', obj),