Python formatting
This commit is contained in:
@ -62,13 +62,10 @@ def get_notification_count(user):
|
|||||||
def get_replies(status):
|
def get_replies(status):
|
||||||
""" get all direct replies to a status """
|
""" get all direct replies to a status """
|
||||||
# TODO: this limit could cause problems
|
# TODO: this limit could cause problems
|
||||||
return (
|
return models.Status.objects.filter(
|
||||||
models.Status.objects.filter(
|
reply_parent=status,
|
||||||
reply_parent=status,
|
deleted=False,
|
||||||
deleted=False,
|
).select_subclasses()[:10]
|
||||||
)
|
|
||||||
.select_subclasses()[:10]
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@register.filter(name="parent")
|
@register.filter(name="parent")
|
||||||
|
Reference in New Issue
Block a user