mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-09-10 08:13:12 +00:00
18 lines
521 B
Python
18 lines
521 B
Python
|
|
from django.contrib import admin
|
|
from reversion.admin import VersionAdmin
|
|
|
|
from .models import Port, Room, Switch
|
|
|
|
class SwitchAdmin(VersionAdmin):
|
|
list_display = ('switch_interface','location','number','details')
|
|
|
|
class PortAdmin(VersionAdmin):
|
|
list_display = ('switch', 'port','room','machine_interface','radius','details')
|
|
|
|
class RoomAdmin(VersionAdmin):
|
|
list_display = ('name','details')
|
|
|
|
admin.site.register(Port, PortAdmin)
|
|
admin.site.register(Room, RoomAdmin)
|
|
admin.site.register(Switch, SwitchAdmin)
|