1
0
mirror of https://github.com/daniviga/bite.git synced 2024-11-23 05:16:13 +01:00
bite/freedcs/telemetry/admin.py
Daniele Viganò 8e5a407b28
Implement MQTT ingestion and improve dockerization (#13)
* Add mqtt-to-db command

* Minor fixes

* Ignore production.py on git

* Add a production conf

* Add django container

* Add gunicorn for prod and traefik
2020-06-15 22:47:55 +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',)