from django.contrib import admin
from formulas.models.symbol import Symbol

@admin.register(Symbol)
class SymbolAdmin(admin.ModelAdmin):
    list_display = ("symbol_id", "name", "unit", "code", "revision", "category")
    list_filter = ("category", "revision")
    search_fields = ("symbol_id", "name", "code", "description")
    readonly_fields = ("code",)
    ordering = ("code",)