From 3feeb796317fe23ab85d38f1807effac0ee37f80 Mon Sep 17 00:00:00 2001
From: Matthieu Fesselier <matthieu.fesselier@gmail.com>
Date: Mon, 17 Jun 2019 09:34:38 +0800
Subject: [PATCH] update: ordering by date

---
 djangoldp_notification/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/djangoldp_notification/models.py b/djangoldp_notification/models.py
index bb28c47..ce64bbd 100644
--- a/djangoldp_notification/models.py
+++ b/djangoldp_notification/models.py
@@ -31,7 +31,7 @@ class Notification(Model):
     class Meta(Model.Meta):
         #permission_classes = [InboxPermissions]
         depth = 0
-        ordering = ['date']
+        ordering = ['-date']
 
     def __str__(self):
         return '{}'.format(self.type)
-- 
GitLab