Ticket #14202: patch.diff

File patch.diff, 866 bytes (added by Fabian Topfstedt, 14 years ago)

The patch to make it work (against trunk)

  • django/utils/feedgenerator.py

     
    219219        handler.addQuickElement(u"title", self.feed['title'])
    220220        handler.addQuickElement(u"link", self.feed['link'])
    221221        handler.addQuickElement(u"description", self.feed['description'])
    222         handler.addQuickElement(u"atom:link", None, {u"rel": u"self", u"href": self.feed['feed_url']})
     222        if self.feed['feed_url'] is not None:
     223            handler.addQuickElement(u"atom:link", None, {u"rel": u"self",
     224                u"href": self.feed['feed_url']})
    223225        if self.feed['language'] is not None:
    224226            handler.addQuickElement(u"language", self.feed['language'])
    225227        for cat in self.feed['categories']:
Back to Top