Commit 3617bee5 authored by Nicolas Noé's avatar Nicolas Noé
Browse files

Small admin improvements.

parent e5c4a3be
...@@ -24,7 +24,7 @@ class SpecimenAdmin(admin.ModelAdmin): ...@@ -24,7 +24,7 @@ class SpecimenAdmin(admin.ModelAdmin):
form = MyAdminForm form = MyAdminForm
list_display = ('specimen_id', 'station', 'scientific_name', 'identified_by', 'specimen_location', 'depth_str', 'fixation') list_display = ('specimen_id', 'station', 'scientific_name', 'identified_by', 'specimen_location', 'depth_str', 'fixation')
list_filter = ('identified_by', 'specimen_location', 'fixation', 'station') list_filter = ('identified_by', 'specimen_location', 'fixation', 'station__expedition')
search_fields = ['scientific_name', 'specimen_id'] search_fields = ['scientific_name', 'specimen_id']
# TODO: document searchable fields in template? (https://stackoverflow.com/questions/11411622/add-help-text-for-search-field-in-admin-py) # TODO: document searchable fields in template? (https://stackoverflow.com/questions/11411622/add-help-text-for-search-field-in-admin-py)
...@@ -56,6 +56,6 @@ class ExpeditionAdmin(admin.ModelAdmin): ...@@ -56,6 +56,6 @@ class ExpeditionAdmin(admin.ModelAdmin):
@admin.register(SpecimenPicture) @admin.register(SpecimenPicture)
class SpecimenPictureAdmin(admin.ModelAdmin): class SpecimenPictureAdmin(admin.ModelAdmin):
pass fields = ('specimen', 'image', 'high_interest')
admin.site.site_header = 'Astapor administration' admin.site.site_header = 'Astapor administration'
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment