from django.contrib import admin
from .models import Station, Track

@admin.register(Station)
class StationAdmin(admin.ModelAdmin):
    list_display = ('name', 'is_active', 'color')
    list_filter = ('is_active',)
    search_fields = ('name',)

@admin.register(Track)
class TrackAdmin(admin.ModelAdmin):
    list_display = ('title', 'artist', 'station', 'created_at')
    list_filter = ('station',)
    search_fields = ('title', 'artist')