Make Person model ordering by full_name by default

This commit is contained in:
PCoder 2022-01-05 22:18:21 +05:30
parent fa6d20901a
commit fdb9dc15de

View file

@ -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']