X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=dashboard%2Fsrc%2Fapi%2Fadmin.py;fp=dashboard%2Fsrc%2Fapi%2Fadmin.py;h=f1bc70a64c814e9fb743b64d39b7b2d03e2c4d6c;hb=25275685e9a735e51fae8b1a936ba5733f6fb770;hp=0000000000000000000000000000000000000000;hpb=f2e83b24260b018bb7cc30421eda6c9a8cebc309;p=pharos-tools.git diff --git a/dashboard/src/api/admin.py b/dashboard/src/api/admin.py new file mode 100644 index 0000000..f1bc70a --- /dev/null +++ b/dashboard/src/api/admin.py @@ -0,0 +1,28 @@ +############################################################################## +# 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 * + + +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(AccessRelation) +admin.site.register(SoftwareRelation) +admin.site.register(HostHardwareRelation) +admin.site.register(HostNetworkRelation)