mirror of
https://github.com/daniviga/bite.git
synced 2024-11-23 05:16:13 +01:00
Daniele Viganò
8e5a407b28
* 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
11 lines
342 B
Python
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',)
|