1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-24 05:46:13 +01:00
bite/freedcs/telemetry/admin.py

11 lines
329 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', 'time', 'clock', 'payload',)
list_display = ('__str__', 'device')
list_filter = ('time', 'device__serial')
search_fields = ('device__serial',)