mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +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 = (
|
||||
request.user.notification_set.all()
|
||||
.order_by("-created_date")
|
||||
.select_related(
|
||||
"related_status",
|
||||
"related_status__reply_parent",
|
||||
.prefetch_related(
|
||||
"related_statuses",
|
||||
"related_import",
|
||||
"related_report",
|
||||
"related_user",
|
||||
"related_list_item",
|
||||
"related_list_item__book",
|
||||
"related_reports",
|
||||
"related_users",
|
||||
"related_list_items",
|
||||
)
|
||||
)
|
||||
if notification_type == "mentions":
|
||||
|
|
Loading…
Reference in a new issue