Skip to content

Commit

Permalink
cortexlab cull subjects admin modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
mayofaulkner committed Oct 25, 2023
1 parent a1b0bc2 commit eaf0945
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions alyx/subjects/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit eaf0945

Please sign in to comment.