Commit dd5926b4 authored by Skia's avatar Skia
Browse files

core: fix notif ordering

Signed-off-by: Skia's avatarSkia <>
parent 4c1b231e
......@@ -78,7 +78,7 @@
<a href="#" onclick="display_notif()">&#x1f514; ({{ user.notifications.filter(viewed=False).count() }})</a>
<ul id="header_notif">
{% for n in user.notifications.filter(viewed=False).order_by('-id') %}
{% for n in user.notifications.filter(viewed=False).order_by('-date') %}
<a href="{{ url("core:notification", }}">
<span class="header_notif_date">
......@@ -51,7 +51,7 @@ class NotificationList(ListView):
def get_queryset(self):
if 'see_all' in self.request.GET.keys():
return self.request.user.notifications.order_by('-id')[:20]
return self.request.user.notifications.order_by('-date')[:20]
def notification(request, notif_id):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment