apply linter
This commit is contained in:
parent
c21d580fd8
commit
70679856bd
1 changed files with 7 additions and 3 deletions
|
@ -36,9 +36,13 @@ class RssFeed(Feed):
|
||||||
|
|
||||||
def items(self, obj):
|
def items(self, obj):
|
||||||
"""the user's activity feed"""
|
"""the user's activity feed"""
|
||||||
return obj.status_set.select_subclasses().filter(
|
return (
|
||||||
privacy__in=["public", "unlisted"],
|
obj.status_set.select_subclasses()
|
||||||
).order_by("-published_date")[:10]
|
.filter(
|
||||||
|
privacy__in=["public", "unlisted"],
|
||||||
|
)
|
||||||
|
.order_by("-published_date")[:10]
|
||||||
|
)
|
||||||
|
|
||||||
def item_link(self, item):
|
def item_link(self, item):
|
||||||
"""link to the status"""
|
"""link to the status"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue