Skip to content

Commit

Permalink
fixed atom feed
Browse files Browse the repository at this point in the history
  • Loading branch information
slafs authored and jezdez committed Dec 2, 2010
1 parent 6d7cdd9 commit 412adca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notification/feeds.py
Expand Up @@ -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):
Expand All @@ -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.
Expand Down

0 comments on commit 412adca

Please sign in to comment.