Browse files

fixed atom feed

  • Loading branch information...
1 parent 6d7cdd9 commit 412adca7e26377f7978444142303d00523c14500 @slafs slafs committed with jezdez Oct 5, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 notification/feeds.py
View
4 notification/feeds.py
@@ -40,7 +40,7 @@ def item_links(self, notification):
return [{"href" : self.item_id(notification)}]
def item_authors(self, notification):
- return [{"name" : notification.user.username}]
+ return [{"name" : notification.recipient.username}]
class NoticeUserFeed(BaseNoticeFeed):
@@ -58,7 +58,7 @@ def feed_title(self, user):
return _('Notices Feed')
def feed_updated(self, user):
- qs = Notice.objects.filter(user=user)
+ qs = Notice.objects.filter(recipient=user)
# We return an arbitrary date if there are no results, because there
# must be a feed_updated field as per the Atom specifications, however
# there is no real data to go by, and an arbitrary date can be static.

0 comments on commit 412adca

Please sign in to comment.