diff --git a/src/fellchensammlung/feeds.py b/src/fellchensammlung/feeds.py index 7293291..afc7f6c 100644 --- a/src/fellchensammlung/feeds.py +++ b/src/fellchensammlung/feeds.py @@ -1,5 +1,6 @@ from django.contrib.syndication.views import Feed from django.utils.feedgenerator import Rss201rev2Feed +from django.templatetags.static import static from django.urls import reverse from django.utils.xmlutils import SimplerXMLGenerator @@ -15,7 +16,7 @@ class FormattedFeed(Rss201rev2Feed): def write(self, outfile, encoding): handler = SimplerXMLGenerator(outfile, encoding, short_empty_elements=True) handler.startDocument() - handler._write('') + handler._write(f'') handler.startElement("rss", self.rss_attributes()) handler.startElement("channel", self.root_attributes()) self.add_root_elements(handler) diff --git a/src/fellchensammlung/static/rss.xsl b/src/fellchensammlung/static/rss.xsl index 9f99640..ef5afb9 100644 --- a/src/fellchensammlung/static/rss.xsl +++ b/src/fellchensammlung/static/rss.xsl @@ -12,7 +12,7 @@ - +