Paginate followers/following pages
This commit is contained in:
parent
99efe6b290
commit
786cf4fb97
4 changed files with 9 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue