11 lines
328 B
Python
11 lines
328 B
Python
|
|
from django.contrib import admin
|
||
|
|
|
||
|
|
from .models import SensorDevice
|
||
|
|
|
||
|
|
|
||
|
|
@admin.register(SensorDevice)
|
||
|
|
class SensorDeviceAdmin(admin.ModelAdmin):
|
||
|
|
list_display = ("device_identifier", "sensor_uuid", "is_active", "created_at")
|
||
|
|
search_fields = ("device_identifier", "sensor_uuid")
|
||
|
|
list_filter = ("is_active", "created_at")
|