mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-04 17:06:27 +00:00
20 lines
509 B
Python
20 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)
|