Ticket #3624: feeds.diff
File feeds.diff, 1.1 KB (added by , 17 years ago) |
---|
-
django/contrib/syndication/feeds.py
85 85 try: 86 86 title_tmp = loader.get_template(self.title_template_name) 87 87 except TemplateDoesNotExist: 88 title_tmp = Template('{{ obj }}') 88 title_tmp = self.__get_dynamic_attr('item_title', obj) 89 if not title_tmp: 90 title_tmp = Template('{{ obj }}') 89 91 try: 90 92 description_tmp = loader.get_template(self.description_template_name) 91 93 except TemplateDoesNotExist: 92 description_tmp = Template('{{ obj }}') 94 description_tmp = self.__get_dynamic_attr('item_description', obj) 95 if not description_tmp: 96 description_tmp = Template('{{ obj }}') 93 97 94 98 for item in self.__get_dynamic_attr('items', obj): 95 99 link = add_domain(current_site.domain, self.__get_dynamic_attr('item_link', item))