Ticket #7039: patch_feedlang.diff

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

feed language patch

  • django/contrib/syndication/feeds.py

     
    8181            subtitle = self.__get_dynamic_attr('subtitle', obj),
    8282            link = link,
    8383            description = self.__get_dynamic_attr('description', obj),
    84             language = self.__get_dynamic_attr('language', obj) or settings.LANGUAGE_CODE.decode(),
     84            language = settings.LANGUAGE_CODE.decode(),
    8585            feed_url = add_domain(current_site, self.__get_dynamic_attr('feed_url', obj)),
    8686            author_name = self.__get_dynamic_attr('author_name', obj),
    8787            author_link = self.__get_dynamic_attr('author_link', obj),
Back to Top