Merge "Fixes a typo"
[pharos-tools.git] / dashboard / src / resource_inventory / admin.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 from django.contrib import admin
12
13 from resource_inventory.models import (
14     HostProfile,
15     InterfaceProfile,
16     DiskProfile,
17     CpuProfile,
18     RamProfile,
19     GenericResourceBundle,
20     GenericResource,
21     GenericHost,
22     GenericInterface,
23     Host,
24     Interface,
25     Network,
26     Vlan,
27     ResourceBundle,
28     Scenario,
29     Installer,
30     Opsys,
31     ConfigBundle,
32     OPNFVConfig,
33     OPNFVRole,
34     Image,
35     HostConfiguration,
36     RemoteInfo
37 )
38
39 profiles = [HostProfile, InterfaceProfile, DiskProfile, CpuProfile, RamProfile]
40
41 admin.site.register(profiles)
42
43 generics = [GenericResourceBundle, GenericResource, GenericHost, GenericInterface]
44
45 admin.site.register(generics)
46
47 physical = [Host, Interface, Network, Vlan, ResourceBundle]
48
49 admin.site.register(physical)
50
51 config = [Scenario, Installer, Opsys, ConfigBundle, OPNFVConfig, OPNFVRole, Image, HostConfiguration, RemoteInfo]
52
53 admin.site.register(config)