from django.contrib import admin
from formulas.models.formula import Formula

@admin.register(Formula)
class FormulaAdmin(admin.ModelAdmin):
    list_display = ("formula_id", "title", "code", "revision", "category")
    list_filter = ("category", "revision")
    search_fields = ("formula_id", "title", "code", "description")
    readonly_fields = ("code", "created_at")
    ordering = ("code",)