diff options
author | Cefin <kevon@tuta.io> | 2021-11-25 10:07:02 +0000 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:49 +0200 |
commit | 15f1921fb5fc886024fe004be5a4783bfd0a5533 (patch) | |
tree | 63d43a11e4908930c9ed607acaf80c00189b083d /ishtar_common | |
parent | d31d9d7f9a951f3758be2c8bfc370820d555d1c4 (diff) | |
download | Ishtar-15f1921fb5fc886024fe004be5a4783bfd0a5533.tar.bz2 Ishtar-15f1921fb5fc886024fe004be5a4783bfd0a5533.zip |
sort members by name surname on organisation record #5173
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 1 |
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,) |