from django.contrib import admin

from .models import Plant


@admin.register(Plant)
class PlantAdmin(admin.ModelAdmin):
    list_display = (
        "id",
        "name",
        "light",
        "soil",
        "temperature",
        "planting_season",
        "created_at",
    )
    list_filter = ("planting_season",)
    search_fields = ("name",)
    readonly_fields = ("created_at", "updated_at")
