ccdb-api/ccdb/species/admin.py
Matthew Dillon 3be40fe7da Species
2016-01-30 17:05:59 -07:00

14 lines
436 B
Python

from django.contrib import admin
from .models import Species
class SpeciesAdmin(admin.ModelAdmin):
list_display = ('common_name', 'genus', 'species', 'parasite', 'sort_order')
list_display_links = ('common_name',)
search_fields = ('common_name', 'genus', 'species', 'parasite')
list_per_page = 25
fields = ('common_name', 'genus', 'species', 'parasite', 'sort_order')
admin.site.register(Species, SpeciesAdmin)