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 bed5c5f commit 8cffb1c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zds/forum/feeds.py
Expand Up @@ -54,6 +54,8 @@ def items(self):
topics = Topic.objects.filter(forum__group__isnull=True)\
.order_by('-pubdate')
return topics[:5]
def item_pubdate(self, item):
return item.pubdate

def item_title(self, item):
return u'{} dans {}'.format(item.title, item.forum.title)
Expand Down

0 comments on commit 8cffb1c

Please sign in to comment.