From 2d5eb0270d89f0c49a893be7ad5b58703876b7ab Mon Sep 17 00:00:00 2001 From: Sivert Kronen Hatteberg <sivert.hatteberg@usit.uio.no> Date: Tue, 24 Jan 2023 14:04:23 +0100 Subject: [PATCH] Sort the sponsors by feide_id. This sorts any sponsor drop downs in the admin site --- greg/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/greg/admin.py b/greg/admin.py index ff5e9a9d..23953de8 100644 --- a/greg/admin.py +++ b/greg/admin.py @@ -142,6 +142,7 @@ class SponsorAdmin(VersionAdmin): inlines = (OrganizationalUnitInline,) readonly_fields = ("id", "created", "updated") search_fields = ("feide_id", "first_name", "last_name") + ordering = ["feide_id"] class SponsorOrganizationalUnitAdmin(VersionAdmin): -- GitLab