From 08f5125e9be5fe5c8773552a447da67ccf801208 Mon Sep 17 00:00:00 2001 From: Cefin Date: Thu, 25 Nov 2021 10:07:02 +0000 Subject: sort members by name surname on organisation record #5173 --- ishtar_common/models.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index cb0da7ba7..e87e6c5a2 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2670,6 +2670,7 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): ("change_own_person", "Can change own Person"), ("delete_own_person", "Can delete own Person"), ) + ordering = ['name', 'surname'] def natural_key(self): return (self.uuid,) -- cgit v1.2.3