mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-07-15 12:44:24 +02:00
Router availability display and history
This commit is contained in:
parent
23c4090ec1
commit
1f5bbf1608
8 changed files with 116 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
from django.contrib import admin
|
||||
from .models import RouterDownTime
|
||||
|
||||
# Register your models here.
|
||||
|
||||
class RouterDownTimeAdmin(admin.ModelAdmin):
|
||||
list_display = ('router', 'start_time', 'end_time', 'total_down_time', 'updated', 'created', 'uuid')
|
||||
search_fields = ('router', 'start_time', 'end_time', 'total_down_time', 'updated', 'created', 'uuid')
|
||||
readonly_fields = ('updated', 'created', 'uuid')
|
||||
|
||||
|
||||
admin.site.register(RouterDownTime, RouterDownTimeAdmin)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue