1
0
mirror of https://github.com/daniviga/bite.git synced 2024-12-24 17:21:25 +01:00
bite/beer/telemetry/admin.py
Daniele Viganò 09cf23554a
Project renaming (#14)
* Renaming

* Make Django migrations sync to DB availability
2020-06-17 20:08:10 +02:00

11 lines
342 B
Python

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',)