From fdb9dc15de60391a8027d0554e9d6f5b753c5b1d Mon Sep 17 00:00:00 2001 From: PCoder Date: Wed, 5 Jan 2022 22:18:21 +0530 Subject: [PATCH] Make Person model ordering by full_name by default --- app/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/admin.py b/app/admin.py index 1debd77..81a43df 100644 --- a/app/admin.py +++ b/app/admin.py @@ -66,6 +66,7 @@ class PersonAdmin(admin.ModelAdmin): list_display = ['id', 'full_name', 'organization'] autocomplete_fields = ['organization'] list_per_page = settings.ADMIN_LIST_PER_PAGE + ordering = ['full_name'] # list_display_links = ['id']