Limit how many notifications are loaded
This commit is contained in:
parent
7449f34a61
commit
99efe6b290
@ -16,7 +16,7 @@ class Notifications(View):
|
||||
notifications = request.user.notification_set.all().order_by("-created_date")
|
||||
unread = [n.id for n in notifications.filter(read=False)]
|
||||
data = {
|
||||
"notifications": notifications,
|
||||
"notifications": notifications[:50],
|
||||
"unread": unread,
|
||||
}
|
||||
notifications.update(read=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user