Ticket #9555: syndication_feeds_r9370.diff
File syndication_feeds_r9370.diff, 815 bytes (added by , 16 years ago) |
---|
-
django/contrib/syndication/feeds.py
23 23 item_pubdate = None 24 24 item_enclosure_url = None 25 25 feed_type = feedgenerator.DefaultFeed 26 feed_url = None 26 27 title_template = None 27 28 description_template = None 28 29 29 30 def __init__(self, slug, request): 30 31 self.slug = slug 31 32 self.request = request 32 self.feed_url = request.path33 self.feed_url = self.feed_url or request.path 33 34 self.title_template_name = self.title_template or ('feeds/%s_title.html' % slug) 34 35 self.description_template_name = self.description_template or ('feeds/%s_description.html' % slug) 35 36