feed shortname in rss items

This commit is contained in:
Thomas NOËL 2011-04-22 14:07:47 +02:00
parent 796eceb01e
commit c38cd964d4
1 changed files with 3 additions and 2 deletions

View File

@ -12,10 +12,11 @@ class AoFeed(Feed):
return Item.objects.order_by('-add_date')[:300]
def item_title(self, item):
title = '[' + item.source.__unicode__() + '] ' + item.title
if item.mark:
return '[!] ' + item.title
return '[!] ' + title
else:
return item.title
return title
def item_description(self, item):
return item.description