core: fix notif ordering

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia
2017-09-06 13:05:51 +02:00
parent 4c1b231ec9
commit dd5926b404
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ class NotificationList(ListView):
def get_queryset(self):
if 'see_all' in self.request.GET.keys():
self.request.user.notifications.update(viewed=True)
return self.request.user.notifications.order_by('-id')[:20]
return self.request.user.notifications.order_by('-date')[:20]
def notification(request, notif_id):