mirror of
https://github.com/daniviga/bite.git
synced 2024-11-26 23:06:14 +01:00
Daniele Viganò
e4a3684951
* Add ntpd server to the stack * Enable NTP updates on Arduino * Fix telemetry when clock is 0
11 lines
329 B
Python
11 lines
329 B
Python
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',)
|