from django.contrib import admin
from unfold.admin import ModelAdmin  # noqa

from apps.geology.models import Category


@admin.register(Category)
class CategoryAdmin(ModelAdmin):
    list_display = ("name", "created_at", "updated_at")
    search_fields = ("name",)
    list_filter = ("created_at", "updated_at")
    readonly_fields = ("created_at", "updated_at")
