updates Bitacore
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from django.contrib import admin
|
||||
from .models import Sistema, sistemas_por_cliente, Device,DeviceHistory
|
||||
from .models import Sistema, sistemas_por_cliente, Device,DeviceHistory, BitacoraErrores
|
||||
# Register your models here.
|
||||
|
||||
|
||||
|
||||
class BitacoraErroresAdmin(admin.ModelAdmin):
|
||||
list_display = ['level', 'message']
|
||||
class Sistema_Admin(admin.ModelAdmin):
|
||||
def NSistema(self,obj):
|
||||
return obj.nombre_sistema
|
||||
@@ -21,7 +22,7 @@ class DeviceHistoryAdmin(admin.ModelAdmin):
|
||||
class DeviceAdmin(admin.ModelAdmin):
|
||||
list_display = ['client', 'device_name', 'ip_address', 'sistema', 'macAddress']
|
||||
|
||||
|
||||
admin.site.register(BitacoraErrores,BitacoraErroresAdmin)
|
||||
admin.site.register(Sistema,Sistema_Admin)
|
||||
admin.site.register(sistemas_por_cliente,SPC)
|
||||
admin.site.register(Device,DeviceAdmin)
|
||||
|
||||
Reference in New Issue
Block a user