Skip to content

Commit

Permalink
ajoute l'attribut pubdate aux flux RSS et corrige la description de c…
Browse files Browse the repository at this point in the history
…es derniers (zestedesavoir#1113)
  • Loading branch information
artragis committed Jul 8, 2014
1 parent 8183218 commit bed5c5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zds/forum/feeds.py
Expand Up @@ -12,7 +12,7 @@
class LastPostsFeedRSS(Feed):
title = u'Derniers messages sur Zeste de Savoir'
link = '/forums/'
description = u'Les derniers messages '
description = u'Les derniers messages '+ \
u'parus sur le forum de Zeste de Savoir.'

def items(self):
Expand All @@ -23,6 +23,9 @@ def items(self):
def item_title(self, item):
return u'{}, message #{}'.format(item.topic.title, item.pk)

def item_pubdate(self, item):
return item.pubdate

def item_description(self, item):
# TODO: Use cached Markdown when implemented
return emarkdown(item.text)
Expand Down

0 comments on commit bed5c5f

Please sign in to comment.