summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorCefin <kevon@tuta.io>2021-11-25 10:07:02 +0000
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-07-08 09:58:49 +0200
commit15f1921fb5fc886024fe004be5a4783bfd0a5533 (patch)
tree63d43a11e4908930c9ed607acaf80c00189b083d /ishtar_common/models.py
parentd31d9d7f9a951f3758be2c8bfc370820d555d1c4 (diff)
downloadIshtar-15f1921fb5fc886024fe004be5a4783bfd0a5533.tar.bz2
Ishtar-15f1921fb5fc886024fe004be5a4783bfd0a5533.zip
sort members by name surname on organisation record #5173
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py1
1 files changed, 1 insertions, 0 deletions
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,)