from django.contrib import admin
from .models import Unit

@admin.register(Unit)
class UnitAdmin(admin.ModelAdmin):
    list_display = ('unit_id', 'unit_type', 'status', 'location_lat', 'location_lon')
    list_filter = ('unit_type', 'status')
    search_fields = ('unit_id',)
