Paginate followers/following pages

This commit is contained in:
Mouse Reeve
2021-04-26 10:26:27 -07:00
parent 99efe6b290
commit 786cf4fb97
4 changed files with 9 additions and 3 deletions

View File

@ -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[:50],
"notifications": notifications[:50],
"unread": unread,
}
notifications.update(read=True)