Skip to content

Commit

Permalink
Fixing url and guid in RSS feed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Jan 4, 2014
1 parent 641d67a commit 45f64e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion website/frontend/feeds.py
Expand Up @@ -24,14 +24,17 @@ def items(self):
#def get_object(self, request, *args, **kwargs):
# return self

def item_guid(self, item):
return item['guid']

def item_title(self, item):
return item['title']

def item_description(self, item):
return item['abstract']

def item_link(self, item):
if 'url' in item:
if item.get('url', False):
return item['url']
return CONFIG.config('default')['url']

Expand Down

0 comments on commit 45f64e9

Please sign in to comment.