1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Introduced TopologyMap

This commit is contained in:
Jeremy Stretch
2016-04-08 14:57:54 -04:00
parent 42e16db8b4
commit 29fd04026d
7 changed files with 94 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
from django.contrib import admin
from .models import Graph, ExportTemplate
from .models import Graph, ExportTemplate, TopologyMap
@admin.register(Graph)
@@ -11,3 +11,11 @@ class GraphAdmin(admin.ModelAdmin):
@admin.register(ExportTemplate)
class ExportTemplateAdmin(admin.ModelAdmin):
list_display = ['content_type', 'name', 'mime_type', 'file_extension']
@admin.register(TopologyMap)
class TopologyMapAdmin(admin.ModelAdmin):
list_display = ['name', 'slug', 'site']
prepopulated_fields = {
'slug': ['name'],
}