From eaf0945549326ca77f92aabde26783e52c464e02 Mon Sep 17 00:00:00 2001 From: mayofaulkner Date: Wed, 25 Oct 2023 11:06:37 +0100 Subject: [PATCH] cortexlab cull subjects admin modifications --- alyx/subjects/admin.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/alyx/subjects/admin.py b/alyx/subjects/admin.py index 7c94fc30..6febd819 100755 --- a/alyx/subjects/admin.py +++ b/alyx/subjects/admin.py @@ -1419,16 +1419,17 @@ def queryset(self, request, queryset): class CullMiceAdmin(SubjectAdmin): - list_display = ['nickname', 'birth_date', 'death_date', 'sex_f', 'ear_mark', - 'line', 'cage', 'responsible_user', 'to_be_culled', 'reduced', 'cull_l'] + list_display = ['nickname', 'to_be_culled', 'birth_date', 'death_date', 'sex_f', 'ear_mark', + 'line', 'zygosities', 'cage', 'responsible_user', 'reduced', 'cull_l'] ordering = ['-birth_date', '-nickname'] list_filter = [ResponsibleUserListFilter, CullSubjectAliveListFilter, + ZygosityFilter, ('line', LineDropdownFilter), ] list_editable = ['death_date', 'to_be_culled', 'reduced'] - ordering = ('-birth_date',) + ordering = ['-birth_date', '-nickname'] def sex_f(self, obj): return obj.sex[0] if obj.sex else ''