from discgolf.models import DiscGolfCourse
from django.contrib import admin
from scrobbles.admin import ScrobbleInline


@admin.register(DiscGolfCourse)
class DiscGolfCourseAdmin(admin.ModelAdmin):
    date_hierarchy = "created"
    list_display = ("title", "layout_name", "number_of_holes", "par_total", "pdga_slug", "udisc_id")
    raw_id_fields = ("trail",)
    search_fields = ("title", "layout_name")
    inlines = [
        ScrobbleInline,
    ]
