mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2025-01-13 03:34:29 +00:00
21 lines
509 B
Python
21 lines
509 B
Python
|
|
||
|
from django.contrib import admin
|
||
|
|
||
|
from .models import Port, Room, Link
|
||
|
|
||
|
class PortAdmin(admin.ModelAdmin):
|
||
|
list_display = ('building','switch', 'port','details')
|
||
|
|
||
|
class RoomAdmin(admin.ModelAdmin):
|
||
|
list_display = ('room','details')
|
||
|
|
||
|
class RoomAdmin(admin.ModelAdmin):
|
||
|
list_display = ('room','details')
|
||
|
|
||
|
class LinkAdmin(admin.ModelAdmin):
|
||
|
list_display = ('port', 'room','details')
|
||
|
|
||
|
admin.site.register(Port, PortAdmin)
|
||
|
admin.site.register(Room, RoomAdmin)
|
||
|
admin.site.register(Link, LinkAdmin)
|