Commits

Horst Gutmann committed 29cdb5c

Adds pubdate to feed

Comments (0)

Files changed (1)

cmsplugin_news/feeds.py

     title = settings.FEED_TITLE
     description = settings.FEED_DESCRIPTION
 
-    title_template = 'cmsplugin_news/feeds/item_title.html' 
-    description_template = 'cmsplugin_news/feeds/item_description.html' 
+    title_template = 'cmsplugin_news/feeds/item_title.html'
+    description_template = 'cmsplugin_news/feeds/item_description.html'
 
     @property
     def link(self):
     def item_url(self, item):
         return item.get_absolute_url()
 
+    def item_pubdate(self, item):
+        return item.pub_date