mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-11 01:35:28 +00:00
Updates view
This commit is contained in:
parent
c7ecbb2fdf
commit
0cc2bc269e
1 changed files with 5 additions and 7 deletions
|
@ -16,14 +16,12 @@ class Notifications(View):
|
||||||
notifications = (
|
notifications = (
|
||||||
request.user.notification_set.all()
|
request.user.notification_set.all()
|
||||||
.order_by("-created_date")
|
.order_by("-created_date")
|
||||||
.select_related(
|
.prefetch_related(
|
||||||
"related_status",
|
"related_statuses",
|
||||||
"related_status__reply_parent",
|
|
||||||
"related_import",
|
"related_import",
|
||||||
"related_report",
|
"related_reports",
|
||||||
"related_user",
|
"related_users",
|
||||||
"related_list_item",
|
"related_list_items",
|
||||||
"related_list_item__book",
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
if notification_type == "mentions":
|
if notification_type == "mentions":
|
||||||
|
|
Loading…
Reference in a new issue