mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Python formatting
This commit is contained in:
parent
ac2b63d0cd
commit
dbf795be5d
1 changed files with 1 additions and 4 deletions
|
@ -17,7 +17,6 @@ def get_mentions(status, user):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@register.filter(name="replies")
|
@register.filter(name="replies")
|
||||||
def get_replies(status):
|
def get_replies(status):
|
||||||
"""get all direct replies to a status"""
|
"""get all direct replies to a status"""
|
||||||
|
@ -41,6 +40,4 @@ def get_parent(status):
|
||||||
@register.filter(name="boosted_status")
|
@register.filter(name="boosted_status")
|
||||||
def get_boosted(boost):
|
def get_boosted(boost):
|
||||||
"""load a boosted status. have to do this or it won't get foreign keys"""
|
"""load a boosted status. have to do this or it won't get foreign keys"""
|
||||||
return (
|
return models.Status.objects.select_subclasses().get(id=boost.boosted_status.id)
|
||||||
models.Status.objects.select_subclasses().get(id=boost.boosted_status.id)
|
|
||||||
)
|
|
||||||
|
|
Loading…
Reference in a new issue