from django.contrib import admin
from .models import LyngSat

@admin.register(LyngSat)
class LyngSatAdmin(admin.ModelAdmin):
    list_display = ("id_satellite", "frequency", "polarization", "modulation", "last_update")
    search_fields = ("id_satellite__name", "channel_info")
    list_filter = ("id_satellite", "polarization", "modulation", "standard")
    ordering = ("-last_update",)
    readonly_fields = ("last_update",)