mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 11:16:24 +00:00
14 lines
347 B
Python
14 lines
347 B
Python
|
|
from django.contrib import admin
|
||
|
|
|
||
|
|
from .models import Graph, ExportTemplate
|
||
|
|
|
||
|
|
|
||
|
|
@admin.register(Graph)
|
||
|
|
class GraphAdmin(admin.ModelAdmin):
|
||
|
|
list_display = ['name', 'type', 'weight', 'source']
|
||
|
|
|
||
|
|
|
||
|
|
@admin.register(ExportTemplate)
|
||
|
|
class ExportTemplateAdmin(admin.ModelAdmin):
|
||
|
|
list_display = ['content_type', 'name', 'mime_type', 'file_extension']
|