mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 16:33:47 +00:00
17 lines
464 B
Python
17 lines
464 B
Python
|
|
from django.contrib import admin
|
|
|
|
from .models import Port, Room, Switch
|
|
|
|
class SwitchAdmin(admin.ModelAdmin):
|
|
list_display = ('building','number','details')
|
|
|
|
class PortAdmin(admin.ModelAdmin):
|
|
list_display = ('switch', 'port','room','machine_interface','details')
|
|
|
|
class RoomAdmin(admin.ModelAdmin):
|
|
list_display = ('name','details')
|
|
|
|
admin.site.register(Port, PortAdmin)
|
|
admin.site.register(Room, RoomAdmin)
|
|
admin.site.register(Switch, SwitchAdmin)
|