Commit f3497599 authored by Michal Čihař's avatar Michal Čihař

Pass user

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent c5781f47
......@@ -35,6 +35,8 @@ class ChangesFeed(Feed):
'''
Generic RSS feed for Weblate changes.
'''
def get_object(self, request):
return request.user
def title(self):
return _('Recent changes in %s') % appsettings.SITE_TITLE
......@@ -48,7 +50,7 @@ class ChangesFeed(Feed):
return reverse('home')
def items(self, obj):
return Change.objects.last_changes(None)[:10]
return Change.objects.last_changes(obj)[:10]
def item_title(self, item):
return item.get_action_display()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment