1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-27 07:16:12 +01:00
bite/freedcs/telemetry/admin.py

11 lines
342 B
Python
Raw Normal View History

2020-06-02 00:57:20 +02:00
from django.contrib import admin
from telemetry.models import Telemetry
@admin.register(Telemetry)
class TelemetryAdmin(admin.ModelAdmin):
readonly_fields = ('device', 'transport', 'time', 'clock', 'payload',)
list_display = ('__str__', 'device')
list_filter = ('time', 'device__serial')
search_fields = ('device__serial',)