Updates templates for fav notifications
This commit is contained in:
parent
971bed9942
commit
f76d661e07
4 changed files with 64 additions and 12 deletions
|
@ -15,9 +15,12 @@ class Notifications(View):
|
|||
"""people are interacting with you, get hyped"""
|
||||
notifications = (
|
||||
request.user.notification_set.all()
|
||||
.order_by("-created_date")
|
||||
.order_by("-updated_date")
|
||||
.select_related(
|
||||
"related_status",
|
||||
"related_group",
|
||||
)
|
||||
.prefetch_related(
|
||||
"related_statuses",
|
||||
"related_import",
|
||||
"related_reports",
|
||||
"related_users",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue