aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/admin.py')
-rw-r--r--src/api/admin.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/api/admin.py b/src/api/admin.py
new file mode 100644
index 0000000..8b2fcb3
--- /dev/null
+++ b/src/api/admin.py
@@ -0,0 +1,41 @@
+##############################################################################
+# Copyright (c) 2016 Max Breitenfeldt and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+
+from django.apps import AppConfig
+from django.contrib import admin
+
+from api.models import (
+ Job,
+ OpnfvApiConfig,
+ HardwareConfig,
+ NetworkConfig,
+ SoftwareConfig,
+ AccessConfig,
+ AccessRelation,
+ SoftwareRelation,
+ HostHardwareRelation,
+ HostNetworkRelation,
+)
+
+
+class ApiConfig(AppConfig):
+ name = 'apiJobs'
+
+
+admin.site.register(Job)
+admin.site.register(OpnfvApiConfig)
+admin.site.register(HardwareConfig)
+admin.site.register(NetworkConfig)
+admin.site.register(SoftwareConfig)
+admin.site.register(AccessConfig)
+admin.site.register(AccessRelation)
+admin.site.register(SoftwareRelation)
+admin.site.register(HostHardwareRelation)
+admin.site.register(HostNetworkRelation)