Ticket #9555: syndication_feeds_r9370.diff

File syndication_feeds_r9370.diff, 815 bytes (added by sedden, 7 years ago)

feed_url parameter to be recognized

  • django/contrib/syndication/feeds.py

     
    2323    item_pubdate = None
    2424    item_enclosure_url = None
    2525    feed_type = feedgenerator.DefaultFeed
     26    feed_url = None
    2627    title_template = None
    2728    description_template = None
    2829
    2930    def __init__(self, slug, request):
    3031        self.slug = slug
    3132        self.request = request
    32         self.feed_url = request.path
     33        self.feed_url = self.feed_url or request.path
    3334        self.title_template_name = self.title_template or ('feeds/%s_title.html' % slug)
    3435        self.description_template_name = self.description_template or ('feeds/%s_description.html' % slug)
    3536
Back to Top