from django.contrib import admin

from .models import IrrigationMethod


@admin.register(IrrigationMethod)
class IrrigationMethodAdmin(admin.ModelAdmin):
    list_display = (
        "id",
        "name",
        "category",
        "water_efficiency_percent",
        "soil_type",
        "climate_suitability",
        "created_at",
    )
    list_filter = ("category", "climate_suitability")
    search_fields = ("name", "category")
    readonly_fields = ("created_at", "updated_at")
