Merge "Fixed serialization"
[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
15 profiles = [HostProfile, InterfaceProfile, DiskProfile, CpuProfile, RamProfile]
16
17 admin.site.register(profiles)
18
19 generics = [GenericResourceBundle, GenericResource, GenericHost, GenericInterface]
20
21 admin.site.register(generics)
22
23 physical = [Host, Interface, Network, Vlan, ResourceBundle]
24
25 admin.site.register(physical)
26
27 config = [Scenario, Installer, Opsys, ConfigBundle, OPNFVConfig, OPNFVRole, Image, HostConfiguration]
28
29 admin.site.register(config)