From 6cccb450b027a7f8d56a5b45f664a8fe0ad0ce45 Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sun, 7 Jun 2020 12:10:33 +0200 Subject: [PATCH] fix contact order on alias contact manager page --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 8172e71c..7cebed23 100644 --- a/app/models.py +++ b/app/models.py @@ -805,7 +805,7 @@ class Alias(db.Model, ModelMixin): def get_contacts(self, page=0): contacts = ( Contact.filter_by(alias_id=self.id) - .order_by(Contact.created_at) + .order_by(Contact.created_at.desc()) .limit(PAGE_LIMIT) .offset(page * PAGE_LIMIT) .all()