from django.contrib import admin
from nature.models import SpeciesObservation
from scrobbles.admin import ScrobbleInline


@admin.register(SpeciesObservation)
class SpeciesObservationAdmin(admin.ModelAdmin):
    date_hierarchy = "created"
    list_display = ("uuid", "title", "scientific_name", "taxon_id")
    ordering = ("-created",)
    search_fields = ("title", "scientific_name")
    inlines = [
        ScrobbleInline,
    ]
